Parcourir la source

优化请求间隔。

tom il y a 2 mois
Parent
commit
604af6493d

+ 3 - 3
ruoyi-sim/src/main/java/com/ruoyi/sim/constant/CommConst.java

@@ -76,7 +76,7 @@ public interface CommConst {
      * 请求间隔睡眠时间-long
      * default:200L
      */
-    Long SLEEP_LONG = 1000L;
+    Long SLEEP_LONG = 300L;
     /**
      * 请求间隔睡眠时间-mid
      * default:100L
@@ -86,11 +86,11 @@ public interface CommConst {
      * 请求间隔睡眠时间-short
      * default:64L
      */
-    Long SLEEP_SHORT = 1000L;
+    Long SLEEP_SHORT = 200L;
 
     int SOCKET_TIME_OUT = 50;
 
-    int PING_TIME_OUT = 1000;
+    int PING_TIME_OUT = 500;
 
     String[] TYPE_1_BIND_MSG = new String[]{"01", "02", "03", "04", "05",
             "06", "07", "08", "09", "0A"};