mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-12-19 16:30:07 +08:00
fix: tuic server goroutine leak
This commit is contained in:
parent
545d9b844d
commit
4188277b61
@ -87,7 +87,11 @@ func (s *serverHandler) handle() {
|
||||
_ = s.handleMessage()
|
||||
}()
|
||||
|
||||
<-s.quicConn.HandshakeComplete()
|
||||
select {
|
||||
case <-s.quicConn.HandshakeComplete(): // this chan maybe not closed if handshake never complete
|
||||
case <-time.After(s.quicConn.Config().HandshakeIdleTimeout): // HandshakeIdleTimeout in real conn.Config() never be zero
|
||||
}
|
||||
|
||||
time.AfterFunc(s.AuthenticationTimeout, func() {
|
||||
if s.v4Handler != nil {
|
||||
if s.v4Handler.AuthOk() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user