[New-bugs-announce] [issue4332] asyncore.file_dispatcher does not use dup()'ed fd
Christian Becke
report at bugs.python.org
Mon Nov 17 01:20:32 CET 2008
New submission from Christian Becke <christianbecke at gmail.com>:
asyncore.file_dispatcher stores the file descriptor passed to
asyncore.file_dispatcher.__init__ into the map, not the dup()'ed one
created by asyncore.file_wrapper. Because of this, a "select.error (9,
'Bad file descriptor')" is raised in asyncore.loop() if the fd passed to
asyncore.file_dispatcher.__init__ is closed while the loop is running.
Attached patch fixes the issue.
----------
components: Library (Lib)
files: asyncore_file_dispatcher_use_duped_fd.diff
keywords: patch
messages: 75947
nosy: christianbecke
severity: normal
status: open
title: asyncore.file_dispatcher does not use dup()'ed fd
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file12022/asyncore_file_dispatcher_use_duped_fd.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4332>
_______________________________________
More information about the New-bugs-announce
mailing list