01-02 00:08:43.560: W/System.err(3409): java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)01-02 00:08:43.560: W/System.err(3409): at libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:545)01-02 00:08:43.560: W/System.err(3409): at libcore.io.IoBridge.recvfrom(IoBridge.java:509)01-02 00:08:43.560: W/System.err(3409): at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)01-02 00:08:43.560: W/System.err(3409): at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)01-02 00:08:43.560: W/System.err(3409): at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)01-02 00:08:43.560: W/System.err(3409): at java.io.InputStream.read(InputStream.java:162)01-02 00:08:43.560: W/System.err(3409): at com.flx.core.tcp.NetTcpRunnable.downloadData(NetTcpRunnable.java:109)01-02 00:08:43.560: W/System.err(3409): at com.flx.core.tcp.NetTcpRunnable.run(NetTcpRunnable.java:77)01-02 00:08:43.560: W/System.err(3409): at java.lang.Thread.run(Thread.java:841)01-02 00:08:43.560: W/System.err(3409): Caused by: libcore.io.ErrnoException: recvfrom failed: ECONNRESET (Connection reset by peer)01-02 00:08:43.560: W/System.err(3409): at libcore.io.Posix.recvfromBytes(Native Method)01-02 00:08:43.560: W/System.err(3409): at libcore.io.Posix.recvfrom(Posix.java:141)01-02 00:08:43.560: W/System.err(3409): at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:164)01-02 00:08:43.560: W/System.err(3409): at libcore.io.IoBridge.recvfrom(IoBridge.java:506)01-02 00:08:43.560: W/System.err(3409): ... 7 more
出现原因:
1、客户关掉了浏览器,而服务器还在给客户端发送数据;
client端与server端建立连接后,请求下载文件,将client端与server端断开然后再连接上。