Since App Engine's httplib is simply wrapped around their own urlfetch, I'm wondering how to set the default urlfetch timeout to the allowed maximum 10 seconds so that it will affect httplib.HTTPConnection.
I can't directly set the timeout on HTTPConnection, as GAE uses 2.5. 2.6 added the timeout param.
App Engine is a fully managed, serverless platform for developing and hosting web applications at scale. You can choose from several popular languages, libraries, and frameworks to develop your apps, and then let App Engine take care of provisioning servers and scaling your app instances based on demand.
App Engine standard environment pricing. Apps in the standard environment have a free tier for App Engine resources. Any use of App Engine resources beyond the free tier incurs charges as described in this section. To estimate costs for App Engine resources in the standard environment, use the pricing calculator.
Easily host different versions of your app, and easily create development, test, staging, and production environments. Help safeguard your application by defining access rules with App Engine firewall and leverage managed SSL/TLS certificates by default on your custom domain at no additional cost.
Have you tried changing the default urlfetch deadline?
import urlfetch
urlfetch.set_default_fetch_deadline(10)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With