@ -20,6 +20,7 @@ public class CognexSocket {
InputStream is = null;
try {
socket.connect(new InetSocketAddress(ip,port),3000);
socket.setSoTimeout(3000);
os = socket.getOutputStream();
is = socket.getInputStream();
int i = 0;
@ -41,7 +41,7 @@ public class SickSocket {
}
i++;
} catch (IOException e) {
} catch (Exception e) {
tcpLogger.error("sick time out,ip:{},info:{}",ip,e);
log.error("sick time out,ip:{},info:{}",ip,e);
}finally {