From 9775a24c6d06a8a8c90d8d8e4ceed240e6cc2d59 Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Tue, 26 May 2026 16:02:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E6=A0=87-TCP=E6=9C=8D=E5=8A=A1-IDLE?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=B8=BA0,=E9=BB=98=E8=AE=A4=E4=B8=8D=E5=90=AF?= =?UTF-8?q?=E7=94=A8=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/genersoft/iot/vmp/jt1078/config/JT1078Config.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/jt1078/config/JT1078Config.java b/src/main/java/com/genersoft/iot/vmp/jt1078/config/JT1078Config.java index 5e779fc14..dfabb94f4 100644 --- a/src/main/java/com/genersoft/iot/vmp/jt1078/config/JT1078Config.java +++ b/src/main/java/com/genersoft/iot/vmp/jt1078/config/JT1078Config.java @@ -1,6 +1,5 @@ package com.genersoft.iot.vmp.jt1078.config; -import com.genersoft.iot.vmp.jt1078.bean.common.ConfigAttribute; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.core.annotation.Order; @@ -19,7 +18,8 @@ public class JT1078Config { private Boolean record = false; /** - * IdleStateHandler reader idle timeout, unit: minutes + * IDLE状态超时时间,单位:秒,默认0表示不启用,启用后当连接进入IDLE状态超过该时间时将被断开连接 + 连接进入IDLE状态的条件是:在readerIdleTime时间内没有收到任何数据包,并且在writerIdleTime时间内没有发送任何数据包 */ - private Integer readerIdleTime = 15; + private Integer readerIdleTime = 0; }