mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-05 20:19:15 -04:00
agreesively close unresponding connections
This commit is contained in:
@@ -377,6 +377,10 @@ func (kcp *KCP) flush() {
|
||||
if kcp.state == StateTerminated {
|
||||
return
|
||||
}
|
||||
if kcp.state == StateActive && _itimediff(kcp.current, kcp.lastIncomingTime) >= 30000 {
|
||||
kcp.OnClose()
|
||||
}
|
||||
|
||||
if kcp.state == StateTerminating {
|
||||
kcp.output.Write(&CmdOnlySegment{
|
||||
Conv: kcp.conv,
|
||||
|
||||
Reference in New Issue
Block a user