New submission from Christian Becke <[EMAIL PROTECTED]>: 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue4332> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com