Have you tested this in production? I'm seeing a similar result as you where deadlines aren't being honored in the development environment, but it is working in production. Please file a new issue, and use the App Engine for Java group for future Java runtime-related questions. http://code.google.com/p/googleappengine/issues/list http://groups.google.com/group/google-appengine-java
Thanks, - Jason On Fri, Oct 2, 2009 at 9:17 AM, loic <[email protected]> wrote: > > I tried to set the deadline value to 10 senconds with setConnectTimeout > () or low-level api of google url service, but neither worked,deadline > was still 5 seconds. > My app used google app engine sdk 1.25. anyone has an idea? > > Here is an example of my code: > > URL url = new URL(Url); > FetchOptions options = FetchOptions.Builder.withDeadline > (10.0); > HTTPRequest req = new HTTPRequest(url, HTTPMethod.GET, > options.setDeadline(10.0)); > > req.addHeader(new HTTPHeader("Accept-Language", "fr- > FR")); > req.setHeader(new HTTPHeader("Accept-Charset", "UTF-8")); > req.setHeader(new HTTPHeader("Accept-Encoding", > "gzip,deflate")); > > req.getFetchOptions().setDeadline(10.0); > HTTPResponse res = > URLFetchServiceFactory.getURLFetchService().fetch(req); > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
