App Engine httplib.HTTPConnection截止日期

mal*_*ree 6 python google-app-engine

由于App Engine的httplib只是围绕着他们自己的urlfetch,我想知道如何将默认的urlfetch超时设置为允许的最大10秒,以便它将影响httplib.HTTPConnection.

我不能直接在HTTPConnection上设置超时,因为GAE使用2.5.2.6添加了超时参数.

Jos*_*Oca 8

您是否尝试更改默认的urlfetch截止日期?

import urlfetch
urlfetch.set_default_fetch_deadline(10)
Run Code Online (Sandbox Code Playgroud)