New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
selectors.EpollSelector.select raises exception when nothing to select. #67198
Comments
When is called Of course, it makes no sense to call So, I suggest a small fix:
|
Patch attached. Tests pass on Linux. |
+ s.select(timeout=0) I suggest to ensure that the result is an empty list. |
I agree. Please see another one. |
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.) |
Please add a comment explaining the complaint from epoll.poll() we're 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@bugs.python.org>
|
New changeset b2ee06684b6a by Yury Selivanov in branch '3.4': New changeset 202995833ef4 by Yury Selivanov in branch 'default': |
Good point! Committed. |
Thanks for taking care of this. |
New changeset 8f1be68dfcab by Yury Selivanov in branch '3.4': New changeset d36711410f48 by Yury Selivanov in branch 'default': |
New changeset 1e985daa7be6 by Victor Stinner in branch 'default': |
New changeset d3a27a27e008 by Victor Stinner in branch '3.4': |
New changeset 4f928c70f135 by Victor Stinner in branch '3.4': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: