有一天我的androidHttpURLConnection 报这种错。
你看 to reduce latency,this class may reuse the same underlying Socket for.......懂了吧 ,我们访问频率又不大,果断关掉。System.setProperty("http.keepAlive", "false");
ok 解决~~。
本文介绍了解决Android开发中HttpURLConnection出现的重复使用Socket问题的方法。通过设置System属性关闭http.keepAlive选项来避免连接复用导致的延迟问题。
有一天我的androidHttpURLConnection 报这种错。
你看 to reduce latency,this class may reuse the same underlying Socket for.......懂了吧 ,我们访问频率又不大,果断关掉。System.setProperty("http.keepAlive", "false");
ok 解决~~。
3954
2万+
1014

被折叠的 条评论
为什么被折叠?
