Re: [google-appengine] urlfetch.fetch() does not respect deadline/timeout param
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 application code are you executing that line? The call has to be done in the same thread as the actual urlfetch call - try setting the fetch deadline just before you use urlfetch, If that doesn't work: can you post the exact exception text you're seeing? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Re: SSL support
+1 I've always said SSL on GAE should be free... Google should encourage secure connections. App Engine has us surrounded with enough other toll booths that charging for SSL seems completely unnecessary. It sets the baseline cost artificially high for apps that want to use a custom domain (I have to believe most apps want security these days with their custom domain). - Doug On Friday, March 7, 2014 5:27:31 PM UTC-5, GAEfan wrote: Just to follow up, 1.75 years later... Year to date, via analytics: 64% of our visitors use Windows 13% of those use XP 31% of those use IE So, that equals 2.6% of our visitors. 4% of our visitors use Android, of various versions. I am not sure which version, if any, fixed the SNI certificate security warning. So, if we used the SNI version, somewhere between 4-6% of our visitors would not be able to use the SSL. That is still too high. We spend too much to get our visitors, to just send 5% of them away with a bad experience. We could try redirecting the XP/IE and Android visitors to the secure appspot domain. Still not ideal, but a solution. A much better solution would be $99 per year for VIP. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Re: urlfetch.fetch() does not respect deadline/timeout param
Thanks Vinny, my fault. Sometimes the server just responded HTTP 500 after exactly 10 seconds. I was misled by this. On Friday, March 7, 2014 5:10:09 PM UTC+8, Haisheng HU wrote: 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. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.