mal*_*ree 6 python google-app-engine
由于App Engine的httplib只是围绕着他们自己的urlfetch,我想知道如何将默认的urlfetch超时设置为允许的最大10秒,以便它将影响httplib.HTTPConnection.
我不能直接在HTTPConnection上设置超时,因为GAE使用2.5.2.6添加了超时参数.
您是否尝试更改默认的urlfetch截止日期?
import urlfetch
urlfetch.set_default_fetch_deadline(10)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
855 次 |
| 最近记录: |