forked from quic-go/quic-go
use the correct error code for handshake timeouts
This commit is contained in:
@@ -328,7 +328,7 @@ runLoop:
|
||||
s.close(qerr.Error(qerr.NetworkIdleTimeout, "No recent network activity."))
|
||||
}
|
||||
if !s.handshakeComplete && now.Sub(s.sessionCreationTime) >= s.config.HandshakeTimeout {
|
||||
s.close(qerr.Error(qerr.NetworkIdleTimeout, "Crypto handshake did not complete in time."))
|
||||
s.close(qerr.Error(qerr.HandshakeTimeout, "Crypto handshake did not complete in time."))
|
||||
}
|
||||
s.garbageCollectStreams()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user