From abb880d3773665efceb735880e897e15f8d83f70 Mon Sep 17 00:00:00 2001 From: snickersun Date: Sat, 21 Mar 2020 17:50:26 +0800 Subject: [PATCH] =?utf8?q?=E7=94=B1=E4=BA=8E=E5=BF=83=E8=B7=B3=E6=9C=8D?= =?utf8?q?=E5=8A=A1=E5=99=A8=E8=BF=94=E5=9B=9E=E6=97=B6=E9=97=B4=E8=BE=83?= =?utf8?q?=E4=B9=85=EF=BC=8C=E6=9C=80=E5=A4=9A=E7=9A=84=E7=9C=8B=E5=88=B01?= =?utf8?q?6=E7=A7=92=E6=89=8D=E5=9B=9E=EF=BC=8C=E4=BF=AE=E6=94=B9=E4=B8=BA?= =?utf8?q?20=E7=A7=92=E6=A3=80=E6=B5=8B=E4=B8=80=E6=AC=A1=EF=BC=8C?= =?utf8?q?=E5=A6=82=E6=9E=9C=E6=A3=80=E6=B5=8B=E5=A4=B1=E8=B4=A5=E6=89=8D?= =?utf8?q?=E9=87=8D=E5=90=AF=E3=80=82=E9=98=B2=E6=AD=A2=E5=BF=83=E8=B7=B3?= =?utf8?q?=E8=BF=87=E5=A4=9A=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../main/java/com/enqualcomm/support/service/KeepAlive.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/enqualcomm/support/service/KeepAlive.java b/app/src/main/java/com/enqualcomm/support/service/KeepAlive.java index 62649410..52dd083c 100644 --- a/app/src/main/java/com/enqualcomm/support/service/KeepAlive.java +++ b/app/src/main/java/com/enqualcomm/support/service/KeepAlive.java @@ -86,7 +86,7 @@ public class KeepAlive extends AbstractConnectionService { private int hearBeatResendCount=0; private int MaxHeartbeatResendTime=6; //每次retry发送心跳的间隔为20秒 - private int heartBeatRetryTimeout=5; + private int heartBeatRetryTimeout=20; //监测 心跳服务器响应的timer private Timer mTimer_check_server_response=null; @@ -111,7 +111,7 @@ public class KeepAlive extends AbstractConnectionService { public void run() { checkSrvResponse(); } - }, 3*1000, heartBeatRetryTimeout*1000); //delay 3秒先检查一次,然后每5秒重试一次 + }, heartBeatRetryTimeout*1000, heartBeatRetryTimeout*1000); //delay 3秒先检查一次,然后每5秒重试一次 } } } -- 2.17.1