Re: [google-appengine] urlfetch.fetch() does not respect deadline/timeout param

2014-03-09 Thread Vinny P
On Fri, Mar 7, 2014 at 3:10 AM, Haisheng HU hanson2...@gmail.com wrote: What I've tried out includes: 2) urlfetch.set_default_fetch_deadline(60) None of these worked. I always get a timeout exception after 10 seconds. Your #2 option (set_default_fetch_deadline) should work. Where in the

[google-appengine] urlfetch.fetch() does not respect deadline/timeout param

2014-03-07 Thread Haisheng HU
What I've tried out includes: 1) req = urllib2.Request(url, data) try: f = urllib2.urlopen(req, timeout=60) 2) urlfetch.set_default_fetch_deadline(60) 3) r = urlfetch.fetch(url, payload=data, method='POST', deadline=60) None of these worked. I always get a timeout exception after 10 seconds.