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 -

excel vba - VBA Proxy auto-configuration for http requests -

sql server 2008 - split ssrs expression between 2 words -