- 270 名前:デフォルトの名無しさん mailto:sage [2018/12/19(水) 22:44:27.09 ID:AOSOXv/0.net]
- 関数を時間で強制タイムアウトさせるいいモジュールを知りませんか?
requests.get(url)を指定時間で切断する方法で悩んでて、 eventlet.Timeotと同じ事をしたいんだけど、あいにくうちの環境ではうまく動かないんです Q&A https://stackoverflow.com/questions/21965484/timeo import requests import eventlet eventlet.monkey_patch() with eventlet.Timeout(10): url="ipv4.download.thinkbroadband.com/1GB.zip" requests.get(url, verify=False)
|

|