为什麽会出现java.io.IOException: Connection reset by peer的错误
我是在向自己建立的HttpURLConnection的OutputStream中写数据的途中发生这种错误的,也就是说报错之前已经写成功了若干个字节。
程序运行期间并无其他操作。
java.io.IOException: Connection reset by peer
at com.netscape.server.http.servlet.NSServletSession.write(NSServletSession.java, Compiled Code)
at com.netscape.server.http.servlet.NSServletOutputStream.flushPrivate(NSServletOutputStream.java, Compiled Code)
at com.netscape.server.http.servlet.NSServletOutputStream.write(NSServletOutputStream.java, Compiled Code)