Skip to content
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

Keep preferring SelectorEventLoop on Windows #669

Merged
merged 1 commit into from May 13, 2021

Conversation

minrk
Copy link
Member

@minrk minrk commented May 13, 2021

Selector is still preferable when ~all out events are on zmq sockets, which must use the add_reader methods missing from Proactor. Tornado 6.1 puts these events in a background thread when Proactor is used, which we can avoid by using Selector.

cf jupyter/notebook#6052

reverts that part of #564

I don't understand the hang mentioned in #563 - if/where that happens and is caused by this patch, it is presumably multiple event loops with events, but only one running (waiting on async events scheduled on a non-running loop will never finish). That should be traceable and avoidable, though, if it can be reproduced.

Selector is preferable when ~all out events are on zmq sockets, which uses the unsupported add_reader methods.
Tornado 6.1 puts these events in a background thread when Proactor is used, which we can avoid by using Selector.
Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@blink1073 blink1073 added this to the 6.0 milestone May 13, 2021
@blink1073 blink1073 merged commit 782aa1c into ipython:master May 13, 2021
@blink1073
Copy link
Member

@meeseeksdev please backport to 5.5.x

meeseeksmachine pushed a commit to meeseeksmachine/ipykernel that referenced this pull request May 13, 2021
blink1073 added a commit that referenced this pull request May 13, 2021
…on-5.5.x

Backport PR #669 on branch 5.5.x (Keep preferring SelectorEventLoop on Windows)
@minrk minrk deleted the tornado-prefer-selector branch May 13, 2021 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants