mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 18:16:48 +08:00
添加 空闲链接超时自动断开
This commit is contained in:
@@ -93,6 +93,8 @@ func LinkDtls(conn net.Conn, cSess *sessdata.ConnSession) {
|
||||
if payloadIn(cSess, pl) {
|
||||
return
|
||||
}
|
||||
// 只记录返回正确的数据时间
|
||||
cSess.LastDataTime.Store(utils.NowSec())
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user