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
Post a Comment