Socket java.net.SocketException: Connection reset的解决方案
背景:服务端通讯方式:TCP/IPsocket短链接。首先看下我的最开始的socket代码:publicstaticbyte[]sendMessage(Stringurl,intport,byte[]request,inttimeout){byte[]res=null;Socketsocket=null;InputStreamis=null;OutputStreamos=null;try{sock