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

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -