As of HTTP 1.1, socket connections should be persisted for re-use across calls. This greatly reduces the overhead of network connections especially for mobile devices
Android's UrlConnection doesn't appear to honor this HTTP 1.1 specification. E.g. I performed a TCP dump of traffic from my app to see what was happening. "Connection:keep-alive" is being sent properly to my server. My server is then responding with "Connection:keep- alive". However after my app closes the UrlConnection's InputStream, the underlying socket is being closed as well...instead of being persisted. Anyone know a workaround? NOTE: HttpClient seems to respect the "http.keepAlive". -- 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

