What should I do if socket.setdefaulttimeout() is not working?

前端 未结 4 1110
梦如初夏
梦如初夏 2020-11-29 04:55

I\'m writing a script(multi-threaded) to retrieve contents from a website, and the site\'s not very stable so every now and then there\'s hanging http request which cannot e

4条回答
  •  佛祖请我去吃肉
    2020-11-29 05:40

    You could try to use mechanize with eventlet. It does not solve your timeout problem, but greenlet are non blocking, so it can solve your performance problem.

提交回复
热议问题