分析一下java.net.SocketException: Connection reset by peer: Connection reset by peer
使用jakarta-common-net编写了一个ftp客户端上传程序。
运行一段时间后,会抛出上述异常。
查看API文档后发现是由与setSoTimeout方法引起,该方法实际使用的是java.net.Socket的setSoTimeout,但是我还是不能确定产生异常的确切原因,
SocketException - if there is an error in the underlying protocol, such as a TCP error.
请大家帮忙分析一下。谢谢!