The maximum timeout allowed is 10s..
On Tue, Dec 7, 2010 at 12:42 AM, Michael Weinberg <[email protected]>wrote:
> I use 20 seconds timeout when issuing http requests:
>
> URL urlObj = new URL(url);
> URLConnection urlCon = urlObj.openConnection();
> urlCon.setConnectTimeout(20000);
> urlCon.setReadTimeout(20000);
>
> BufferedReader reader = new BufferedReader(new
> InputStreamReader(urlCon.getInputStream()));
>
> while ((line = reader.readLine()) != null) {
> // do something with the line of content
> }
> reader.close();
>
>
> Does it help?
>
>
> Michael Weinberg
>
>
> On Dec 6, 10:12 am, takealike <[email protected]> wrote:
> > Hi.
> > As implied by the subject i would like to ask:
> > 1. Facebook: My GAE application is working with the FB API. this API
> > is very slow, and I receive timeouts. These timeouts cause
> > erroneousness publish action to my users' Facebook. 10 seconds of
> > timeout are just not enough. Can I make this threshold higher?
> > 2. Cache: I'm trying to set the HTML header for my app in GAE to
> > enable client side caching. Unfourtunatly, I have no idea how to do
> > this. Can someone please drop me a hint? thanks.
> > 3. Money: Actually this was to get some attention to my discussion, as
> > FB+Cache issues seemed so boring to me! :-)
> >
> > A big 'Thank You' and a 'Happy Christmas' will be sent (with no
> > Shipping fees) to the answering user.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>
--
Guit: Elegant, beautiful, modular and *production ready* gwt applications.
http://code.google.com/p/guit/
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" 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-java?hl=en.