【发布时间】:2015-09-27 02:40:32
【问题描述】:
我设置了一个HttpUrlConnection 并根据documentation 为单个保持活动连接设置系统属性:
System.setProperty("http.keepAlive", "true");
System.setProperty("http.maxConnections", "1");
Android 会忽略这些。我在wireshark中看到同一IP的多个端口上的http流量连接。我错过了什么还是这只是在Android上坏了?我试过 Android-L 和 Android-M 预览版,都坏了。
【问题讨论】:
标签: android httpurlconnection keep-alive