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

Remove internal zmq_poll implementations for eventloop integration #1021

Merged
merged 16 commits into from
Jun 13, 2017

Conversation

minrk
Copy link
Member

@minrk minrk commented Jun 1, 2017

Instead, use edge-triggered zmq.FD.

This enables integration with any eventloop supported by asyncio, tornado, etc. (closes #894)

After experience of numerous bugs in zmq.green, this can result in hangs if not done super carefully, but it seems worth it at this point with the proliferation of asyncio implementations.

  • handle user retrieving zmq.EVENTS, which can consume events on the FD.
  • update docs
  • update examples
  • verify that it doesn't break anything in IPython/Jupyter.

@minrk minrk changed the title Remove internal zmq_poll implementations for eventloop integration [WIP] Remove internal zmq_poll implementations for eventloop integration Jun 1, 2017
minrk added 9 commits June 1, 2017 15:20
instance no longer creates deprecated class
for more consistent type, warning behavior

still doesn’t do anything zmq-specific, but IOLoop.instance() produces a ZMQIOLoop reliably.
instead of repeated warnings for install and instantiation
@minrk minrk changed the title [WIP] Remove internal zmq_poll implementations for eventloop integration Remove internal zmq_poll implementations for eventloop integration Jun 2, 2017
@minrk minrk merged commit 702bb41 into zeromq:master Jun 13, 2017
@minrk minrk deleted the no-special-loop branch June 13, 2017 10:03
@f0t0n
Copy link

f0t0n commented Jun 13, 2017

Thank you @minrk! 👍

@oplatek oplatek mentioned this pull request Jun 27, 2017
@thehesiod
Copy link
Contributor

yay, this is yuuge :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loop-less zmq.asyncio
4 participants