sendto failed: ECONNRESET (Connection reset by peer)

http://blog.csdn.net/gogler/article/details/17274109

12-12 02:16:31.064: W/System.err(10219): Caused by: libcore.io.ErrnoException: recvfrom failed: ECONNRESET (Connection reset by peer)

上传的图片太大 ,压缩一下就好了

还是不行的话:

http://blog.csdn.net/a332324956/article/details/20158051

最近,老是网络连接超时,不知道怎么回事。
 
尝试加了这个
[代码]java代码:System.setProperty("http.keepAlive", "false");
 
好像行了
原文地址:https://www.cnblogs.com/li-fei/p/4358291.html