On Wed, Oct 23, 2013 at 8:39 PM, John Del Rosario <[email protected]> wrote:
> but my tasks are failing due to the 60 second limit on urlfetch. > > I've tried setting urlfetch.set_default_fetch_deadline(600), but it > doesn't seem to do anything. > > File > "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/remote_socket/_remote_socket.py", > line 864, in recv > > This is not a URLFetch problem. IMAPlib doesn't connect via HTTP (which URLFetch handles), it connects via IMAPS port 993. This means that the failure is in the sockets API. Notice that the stack trace makes reference to sockets, not urlfetch. You need to tell the socket to stay open longer. I don't believe imaplib supplies an easy way to increase the socket timeout, so you may need to dig into imaplib source and increase the timeout there. What IMAP operations are you calling that takes 60+ seconds for the server to respond? I have a Java application that connects to Gmail via IMAP and other external mail servers via POP3, and I have always received fast responses. ----------------- -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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
