On Thu, Jan 5, 2012 at 11:26 AM, Mark Wyszomierski <[email protected]> wrote: > Hi, > > It looks like the android team will be investing more resources in > support / improvement of the HttpURLConnection class, based on this > dev post here: > > http://android-developers.blogspot.com/2011/09/androids-http-clients.html > "For Gingerbread and better, HttpURLConnection is the best choice" > "New applications should use HttpURLConnection; it is where we will be > spending our energy going forward." > > It looks like connection pooling is supported by HttpURLConnection, > but seems to have a timeout of 5 seconds? (I can't find any > documentation on this). Is there any way to increase the duration that > connections are kept alive? > > I'm creating connections to "https://example.com/echo?param=abc". If > the user initiates connections in intervals < 5 seconds, I can see the > https setup is avoided, hinting me that the connection is being > reused. > > But if the connections are spaced out > 5 seconds, I see the entire > https setup done again, making me think the connections are not being > reused. > > Is there a way for us to increase this timeout? > > Thank you >
Sorry if I didn't answer your original question but just post a comment: it seems that this eventually just calls down to apache harmony, which has been abandoned recently: I wonder how this will influence further development... Kris -- You received this message because you are subscribed to the Google Groups "Android Developers" 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/android-developers?hl=en

