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

eventlet.green.zmq ignores RCVTIMEO setting #282

Closed
talwrii opened this issue Jan 12, 2016 · 3 comments
Closed

eventlet.green.zmq ignores RCVTIMEO setting #282

talwrii opened this issue Jan 12, 2016 · 3 comments

Comments

@talwrii
Copy link
Contributor

talwrii commented Jan 12, 2016

RCVTIMEO is documented here: http://api.zeromq.org/2-2:zmq-setsockopt

Here is a repro for you:

from eventlet.green import zmq # broken with this
#import zmq # works with this

sock = zmq.Context().socket(zmq.SUB)
sock.connect('tcp://127.0.0.1:10432')
sock.setsockopt(zmq.RCVTIMEO, 1000)
sock.recv() # hangs with eventlet zmq, times out with zmq
@talwrii
Copy link
Contributor Author

talwrii commented Jan 12, 2016

I've got a patch that fixes this...

Just writing some unit tetsts now (I wanted a bug number)

@talwrii
Copy link
Contributor Author

talwrii commented Jan 13, 2016

Mergey Merge Merge:

#283

@temoto
Copy link
Member

temoto commented Feb 15, 2017

Thank you. Slightly modified version f657c22 of your patch is merged into master. It'll be released on PyPI soon.

@temoto temoto closed this as completed Feb 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants