I've not been able to change the socket read timeout in the SDK for GAE. I went ahead and posted a bug report -- but I wanted to check and see if anyone else is hitting this issue or has worked around it. https://code.google.com/p/googleappengine/issues/detail?id=10916
First: I'm using new Socket because the HttpURLConnection does not seem to work with text/event-stream connections. It simply hangs, waiting until the connection is closed. If anyone has a workaround for that, let me know. I know we can do chunked transfers for sending data, but apparently not receiving. So.. I use new Socket, then readLine() but I get an API timeout in the implementation, though I am using setSoTimeout(). It seems that the Socket implementation is not sending the deadline argument when it runs its API makeSyncCall command. It looks like other implementations for API do send that argument. So, long story short, this looks like a bug, and one that's difficult to work around. The idea here is to go ahead and listen on an http socket for a little while, for some data. HttpURLConnection only works for a single data packet, for getInputStream, and Socket will only wait up to 5 seconds to receive data, otherwise it throws an API error. -Charles -- 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/d/optout.
