android - HttpUrlConnection Keep Alive doesn't work correctly -


i set httpurlconnection , set system properties single keep alive connection per documentation:

system.setproperty("http.keepalive", "true"); system.setproperty("http.maxconnections", "1"); 

android ignores these. i'm seeing connections on multiple ports @ same ip http traffic in wireshark. missing or broken on android? i've tried on android-l , android-m preview, it's broken on both.

which version of android use, in versions of android, there bug socket reuse, please refer following links.

https://code.google.com/p/android/issues/detail?id=38817 https://code.google.com/p/android/issues/detail?id=43132#makechanges

and maybe can try remove gzip content type avoid bug.


Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -