Hi sorry, hasty response. You obviously tried that and doesn't work. We do use socket api for periods longer than 2 mins but in Go. Can't help in java.
On Saturday, 24 October 2015 22:48:45 UTC+1, Miguel Vitorino wrote: > > > Hi, > > Have you thought about calling it from a push task queue? > Task queue initiated requests have a deadline of 10 mins > > Miguel > > On Saturday, 24 October 2015 12:52:45 UTC+1, Jeff Schnitzer wrote: >> >> I'm calling a third-party HTTP service from a task that sometimes takes >> more than 60s to respond. Since the URLFetchService has a hard limit of >> 60s, I thought I might be able to work around this with the Socket API - >> there do not appear to be any documented time limits other than the 2m idle. >> >> I wired in the Apache HttpClient... and I'm still getting an exception at >> 60s, even though I explicitly set the timeout to 118s: >> >> Caused by: java.net.SocketException: Socket operation timed out: The API >> call remote_socket.Receive() took too long to respond and was cancelled. at >> com.google.appengine.api.socket.SocketApiHelper.makeSyncCall( >> SocketApiHelper.java:87 >> <https://console.developers.google.com/project/gearlaunch-hub/clouddev/debug/resolve_location?appModule=default&appVersion=2015-10-24-1046-build-2799×tampNanos=1445685178512000000&file=com%2Fgoogle%2Fappengine%2Fapi%2Fsocket%2FSocketApiHelper.java&line=87>) >> >> at com.google.appengine.api.socket.AppEngineSocketImpl.receive( >> AppEngineSocketImpl.java:750 >> <https://console.developers.google.com/project/gearlaunch-hub/clouddev/debug/resolve_location?appModule=default&appVersion=2015-10-24-1046-build-2799×tampNanos=1445685178512000000&file=com%2Fgoogle%2Fappengine%2Fapi%2Fsocket%2FAppEngineSocketImpl.java&line=750>) >> >> at com.google.appengine.api.socket.AppEngineSocketInputStream.read( >> AppEngineSocketInputStream.java:36 >> <https://console.developers.google.com/project/gearlaunch-hub/clouddev/debug/resolve_location?appModule=default&appVersion=2015-10-24-1046-build-2799×tampNanos=1445685178512000000&file=com%2Fgoogle%2Fappengine%2Fapi%2Fsocket%2FAppEngineSocketInputStream.java&line=36>) >> >> at sun.security.ssl.InputRecord.readFully(InputRecord.java:442 >> <https://console.developers.google.com/project/gearlaunch-hub/clouddev/debug/resolve_location?appModule=default&appVersion=2015-10-24-1046-build-2799×tampNanos=1445685178512000000&file=sun%2Fsecurity%2Fssl%2FInputRecord.java&line=442>) >> >> at sun.security.ssl.InputRecord.read(InputRecord.java:480 >> <https://console.developers.google.com/project/gearlaunch-hub/clouddev/debug/resolve_location?appModule=default&appVersion=2015-10-24-1046-build-2799×tampNanos=1445685178512000000&file=sun%2Fsecurity%2Fssl%2FInputRecord.java&line=480>) >> >> at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:944 >> <https://console.developers.google.com/project/gearlaunch-hub/clouddev/debug/resolve_location?appModule=default&appVersion=2015-10-24-1046-build-2799×tampNanos=1445685178512000000&file=sun%2Fsecurity%2Fssl%2FSSLSocketImpl.java&line=944>) >> >> at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:901 >> <https://console.developers.google.com/project/gearlaunch-hub/clouddev/debug/resolve_location?appModule=default&appVersion=2015-10-24-1046-build-2799×tampNanos=1445685178512000000&file=sun%2Fsecurity%2Fssl%2FSSLSocketImpl.java&line=901>) >> >> at sun.security.ssl.AppInputStream.read(AppInputStream.java:102 >> <https://console.developers.google.com/project/gearlaunch-hub/clouddev/debug/resolve_location?appModule=default&appVersion=2015-10-24-1046-build-2799×tampNanos=1445685178512000000&file=sun%2Fsecurity%2Fssl%2FAppInputStream.java&line=102>) >> >> at org.apache.http.impl.io.SessionInputBufferImpl.streamRead( >> SessionInputBufferImpl.java:139 >> <https://console.developers.google.com/project/gearlaunch-hub/clouddev/debug/resolve_location?appModule=default&appVersion=2015-10-24-1046-build-2799×tampNanos=1445685178512000000&file=org%2Fapache%2Fhttp%2Fimpl%2Fio%2FSessionInputBufferImpl.java&line=139> >> ) >> >> Question #1: Is there a limit missing from the documentation? >> >> Question #2: Will I have any success with the NIO version of httpclient? >> I'm guessing not. >> >> Question #3: Any suggestions for ways to work around this? It's part of >> an already-too-complicated multistep cascade of transactional task >> operations. This will be very hard to split up in any reasonable way. >> >> Thanks, >> Jeff >> > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/24a148b7-8372-4271-92a3-ad5050d5bcbf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
