[issue25680] Selector.select() hangs when there is nothing to select

STINNER Victor report at bugs.python.org
Fri Nov 20 09:36:38 EST 2015


STINNER Victor added the comment:

Your code doesn't make sense. You listen to 0 file descriptor and wait forever until you get events, which will never occur. I'm not even sure that it should be allowed by the Selector API.

What's the point of your bug report? Does your application really rely on the behaviour of the selector when no file descriptor is registered?

The behaviour changes between Linux and OS X because the "default" selector is a different selector on Linux (epoll) and OS X (kqueue? select?)

----------
nosy: +haypo

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25680>
_______________________________________


More information about the Python-bugs-list mailing list