Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App Engine httplib.HTTPConnection deadline

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.

like image 407
maligree Avatar asked Oct 06 '11 11:10

maligree


People also ask

Is App Engine fully managed?

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.

Can I use App Engine for free?

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.

What is App Engine Good For?

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.


1 Answers

Have you tried changing the default urlfetch deadline?

import urlfetch
urlfetch.set_default_fetch_deadline(10)
like image 140
Jose Montes de Oca Avatar answered Sep 18 '22 12:09

Jose Montes de Oca