Giampaolo Rodola' <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue1161031>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com