增加延迟扫码

泸州-视觉+扫码-昆船
LAPTOP-S9HJSOEB\昊天 7 months ago
parent ecbca1127f
commit 3d0cb82a65

@ -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 {

Loading…
Cancel
Save