部标-TCP服务-IDLE状态超时时间设置为0,默认不启用超时

This commit is contained in:
lin 2026-05-26 16:02:25 +08:00
parent 1adcd32e43
commit 9775a24c6d

View File

@ -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;
}