mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-27 15:37:50 +08:00
部标-TCP服务-IDLE状态超时时间设置为0,默认不启用超时
This commit is contained in:
parent
1adcd32e43
commit
9775a24c6d
@ -1,6 +1,5 @@
|
|||||||
package com.genersoft.iot.vmp.jt1078.config;
|
package com.genersoft.iot.vmp.jt1078.config;
|
||||||
|
|
||||||
import com.genersoft.iot.vmp.jt1078.bean.common.ConfigAttribute;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
import org.springframework.core.annotation.Order;
|
import org.springframework.core.annotation.Order;
|
||||||
@ -19,7 +18,8 @@ public class JT1078Config {
|
|||||||
private Boolean record = false;
|
private Boolean record = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IdleStateHandler reader idle timeout, unit: minutes
|
* IDLE状态超时时间,单位:秒,默认0表示不启用,启用后当连接进入IDLE状态超过该时间时将被断开连接
|
||||||
|
连接进入IDLE状态的条件是:在readerIdleTime时间内没有收到任何数据包,并且在writerIdleTime时间内没有发送任何数据包
|
||||||
*/
|
*/
|
||||||
private Integer readerIdleTime = 15;
|
private Integer readerIdleTime = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user