Browse Source

指令响应超时判断调整

chenwen 1 year ago
parent
commit
93c5acd944
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/main/java/com/hb/proj/gather/business/GatherTask.java

+ 4 - 1
src/main/java/com/hb/proj/gather/business/GatherTask.java

@@ -148,8 +148,9 @@ public class GatherTask implements Runnable{
 		if(pre==null||pre==0) {
 			return false;
 		}
-		boolean isTimeout= ((new Date()).getTime()-pre.longValue())>(cmdTimeout-5000);
+		boolean isTimeout= ((new Date()).getTime()-pre.longValue())>(cmdTimeout-1000);
 		
+		/**
 		if(!isTimeout) {
 			timeoutCount=0;  //有一次不超时就清空超时次数
 		}
@@ -158,6 +159,8 @@ public class GatherTask implements Runnable{
 		}
 		
 		return timeoutCount>1;  //多次超时(2次及以上)需要关闭通道,等待重连
+		**/
 		
+		return isTimeout;
 	}
 }