1

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.

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

1 Answers1

-3

set default timeout using socket.setdefaulttimeout(). since timeout of getaddrinfo is not specified it will use default timeout.

ashwin
  • 50
  • 2