简体   繁体   中英

socket.getaddrinfo() block forever when using with gevent

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 .

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM