Using httplib2
, I am sending multiple requests with gevent
, after some time http.request()
method of httplib2
is getting blocked forever.
On checking I found that blocking function is socket.getaddrinfo()
in httplib2 link.
Asked
Active
Viewed 830 times
1

Jerry YY Rain
- 4,134
- 7
- 35
- 52

user1824832
- 13
- 3
-
[This open issue](https://github.com/surfly/gevent/issues/230) on gevent's issue tracker seems to be relevant to this. – metatoaster Jul 22 '14 at 09:50
-
actually, its not working, i tried that too... – user1824832 Jul 22 '14 at 10:37
1 Answers
-3
set default timeout using socket.setdefaulttimeout()
. since timeout of getaddrinfo is not specified it will use default timeout.

ashwin
- 50
- 2