[issue1161031] Neverending warnings from asyncore
Giampaolo Rodola'
report at bugs.python.org
Tue Mar 31 22:32:49 CEST 2009
Giampaolo Rodola' <billiejoex at users.sourceforge.net> added the comment:
I still get some occasional EBADF failures when running pyftpdlib test
suite by using poll().
I think that it makes more sense moving the:
if flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL):
obj.handle_close()
...lines at the top and return if handle_close() is called, as I did in
the patch attached to issue 4501, which is:
if flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL):
obj.handle_close()
else:
if flags & select.POLLIN:
obj.handle_read_event()
if flags & select.POLLOUT:
obj.handle_write_event()
if flags & select.POLLPRI:
obj.handle_expt_event()
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1161031>
_______________________________________
More information about the Python-bugs-list
mailing list