Get requests that take more than 10s

12 views
Skip to first unread message

Aman

unread,
Aug 24, 2011, 3:30:15 PM8/24/11
to Google App Engine
I have a urllib2 fetch in my code. This GET request takes more than
10s. The code for this is executed as a task but still the timeout is
10s.
Pseudo code:
#handler1
taskqueue.add(some_task)

#taskqueuehandler
class some_task_handler:
#do something...
result = urllib2.urlopen(urllib2.Request(url,
urllib.urlencode(values))).read()
#do something with result...

But this request inspite of being executed as in a task has a timeout
of only 10s.

Please help,
Aman

Aman

unread,
Aug 31, 2011, 10:43:49 AM8/31/11
to Google App Engine
Hey Guys, Still Stuck. Please help me with any suggestions that you
may have.

Aman

unread,
Aug 31, 2011, 10:44:31 AM8/31/11
to Google App Engine
Hey Guys, Still Stuck. Please help me with any suggestions that you
may have.

On Aug 24, 3:30 pm, Aman <manpr...@projectnoah.org> wrote:

Tim Hoffman

unread,
Aug 31, 2011, 10:46:33 AM8/31/11
to google-a...@googlegroups.com
Hi

The maximum time for urlfetch (which is underneath urllib2 on appengine) is 10sec.
By default it is 5 secs.

You can't get it increased, you will need to look at some other way of solving your problem,

Rgds

T
Reply all
Reply to author
Forward
0 new messages