[issue19017] selectors: towards uniform EBADF handling
Antoine Pitrou
report at bugs.python.org
Sat Sep 14 13:11:00 CEST 2013
Antoine Pitrou added the comment:
> Another possibility would be to silently fix those, i.e. in case of
> EBADF/POLLNVAL in select/poll, remove the offending FD from the list of
> monitored FDs.
Or we could remove the fd *and* still raise an error the first time, or at least a warning. It sounds like a programming error, so I'm not sure it's a good idea to silence it.
Note that Twisted still logs an error message. Also, Tornado lets errors through:
https://github.com/facebook/tornado/blob/master/tornado/ioloop.py#L652
https://github.com/facebook/tornado/blob/master/tornado/platform/select.py#L61
----------
nosy: +glyph
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19017>
_______________________________________
More information about the Python-bugs-list
mailing list