App Engine httplib.HTTP Connection

Since the App Engine httplib is simply wrapped around its own urlfetch , I am wondering how to set the default urlfetch timeout to a maximum allowable maximum of 10 seconds , so this will affect httplib.HTTPConnection .

I can not set the timeout to HTTPConnection since GAE uses 2.5. 2.6 timeout parameter added.

+5
source share
1 answer

Have you tried changing the default deadline urlfetch?

import urlfetch
urlfetch.set_default_fetch_deadline(10)
+7
source

All Articles