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 <shaharkarny.h...@gmail.com> 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.