We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I came into a problem recently, after tracing problem down, I got this code
# -*- coding: utf-8 -*- import gevent.monkey gevent.monkey.patch_all() import socket import redis import multiprocessing def block(): print 'x' r = redis.Redis() r.get(1) print 'o' socket.getaddrinfo('localhost', 8001) p = multiprocessing.Process(target=block) p.start() p.join()
This code will be blocked forever in r.get(1).
r.get(1)
If I comment out socket.getaddrinfo('localhost', 8001), it'll not be blocked.
socket.getaddrinfo('localhost', 8001)
So any idea on how to solve this?
btw, I'm using
gevent==1.0rc2 redis==2.7.2
Not clear of whether this is gevent problem or redis-py problem, so I also post this issue to gevent: https://github.com/SiteSupport/gevent/issues/230
The text was updated successfully, but these errors were encountered:
socket. getaddrinfo
ok, now I'm clear this is a gevent problem. close it here.
Sorry, something went wrong.
No branches or pull requests
I came into a problem recently, after tracing problem down, I got this code
This code will be blocked forever in
r.get(1)
.If I comment out
socket.getaddrinfo('localhost', 8001)
, it'll not be blocked.So any idea on how to solve this?
btw, I'm using
Not clear of whether this is gevent problem or redis-py problem, so I also post this issue to gevent:
https://github.com/SiteSupport/gevent/issues/230
The text was updated successfully, but these errors were encountered: