mirror of https://github.com/cbeuw/Cloak
Timeout unused new sessions
This commit is contained in:
parent
7be1586973
commit
930e647226
|
|
@ -55,6 +55,7 @@ func MakeSession(id uint32, valve *Valve, obfs Obfser, deobfs Deobfser, obfsedRe
|
||||||
die: make(chan struct{}),
|
die: make(chan struct{}),
|
||||||
}
|
}
|
||||||
sesh.sb = makeSwitchboard(sesh, valve)
|
sesh.sb = makeSwitchboard(sesh, valve)
|
||||||
|
go sesh.timeoutAfter(30 * time.Second)
|
||||||
return sesh
|
return sesh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue