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
-~----------~----~----~----~------~----~------~--~---

Reply via email to