应该在循环里面 connect 失败了就 loop next。 [其他解释] 开始时这样的异常 2012-07-24 01:55:18,586[main] INFO Proxy:108 - Connection reset java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:185) at com.hc.socket.Proxy.decompress(Proxy.java:91) at com.hc.data.SocketData.upDate(SocketData.java:44) at com.hc.jdbc.C3poData.start(C3poData.java:581) at com.hc.jdbc.C3poData.main(C3poData.java:599)
关闭所有socket连接后在次报异常 2012-07-26 18:12:33,667[main] INFO Proxy:108 - Connection reset java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:185) at com.hc.socket.Proxy.decompress(Proxy.java:91) at com.hc.data.SocketData.upDate(SocketData.java:44) at com.hc.jdbc.C3poData.start(C3poData.java:581) at com.hc.jdbc.C3poData.stop(C3poData.java:596) at com.hc.socket.Proxy.ReConnect(Proxy.java:119) at com.hc.socket.Proxy.decompress(Proxy.java:109) at com.hc.data.SocketData.upDate(SocketData.java:44) at com.hc.jdbc.C3poData.start(C3poData.java:581) at com.hc.jdbc.C3poData.stop(C3poData.java:596) at com.hc.socket.Proxy.ReConnect(Proxy.java:119) at com.hc.socket.Proxy.decompress(Proxy.java:109) at com.hc.data.SocketData.upDate(SocketData.java:44) at com.hc.jdbc.C3poData.start(C3poData.java:581) at com.hc.jdbc.C3poData.stop(C3poData.java:596) at com.hc.socket.Proxy.ReConnect(Proxy.java:119) at com.hc.socket.Proxy.decompress(Proxy.java:109) at com.hc.data.SocketData.upDate(SocketData.java:44) at com.hc.jdbc.C3poData.start(C3poData.java:581) at com.hc.jdbc.C3poData.stop(C3poData.java:596) at com.hc.socket.Proxy.ReConnect(Proxy.java:119) at com.hc.socket.Proxy.decompress(Proxy.java:109) at com.hc.data.SocketData.upDate(SocketData.java:44) at com.hc.jdbc.C3poData.start(C3poData.java:581) at com.hc.jdbc.C3poData.main(C3poData.java:599)