java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)

有一天我的androidHttpURLConnection 报这种错。

你看 to reduce latency,this class may reuse the same underlying Socket for.......懂了吧 ,我们访问频率又不大,果断关掉。System.setProperty("http.keepAlive", "false");

ok 解决~~。

posted on 2016-08-18 21:21  oyl  阅读(3904)  评论(0编辑  收藏  举报

导航