[issue23009] selectors.EpollSelector.select raises exception when nothing to select.

Guido van Rossum report at bugs.python.org
Mon Dec 8 17:35:44 CET 2014


Guido van Rossum added the comment:

Please add a comment explaining the complaint from epoll.poll() we're
trying to avoid here.

I presume Tulip never gets into this state because of the self-pipe.

On Mon, Dec 8, 2014 at 8:01 AM, STINNER Victor <report at bugs.python.org>
wrote:

>
> STINNER Victor added the comment:
>
> It's a little bit surprising to call epoll_wait() without any FD
> subscribed, but select([], [], [], delay) is a known way to sleep 'delay'
> seconds, so why not using epoll in a similar way? :-)
>
> epoll_02.patch looks good to me. Can you please also apply the patch to
> the Tulip project?
>
> (By the way, test_selectors.py to Tulip is completly different, we may
> just reuse the file from CPython and drop the code from Tulip.)
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue23009>
> _______________________________________
>

----------

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


More information about the Python-bugs-list mailing list