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 解决~~。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM