Merge pull request #2856 from lucas-clemente/conn-id-update-handshake-completion

wait until the handshake is complete before updating the connection ID
This commit is contained in:
Marten Seemann
2020-11-10 20:52:09 +07:00
committed by GitHub
4 changed files with 31 additions and 1 deletions

View File

@@ -691,6 +691,7 @@ func (s *session) handleHandshakeComplete() {
s.handshakeCompleteChan = nil // prevent this case from ever being selected again
s.handshakeCtxCancel()
s.connIDManager.SetHandshakeComplete()
s.connIDGenerator.SetHandshakeComplete()
if s.perspective == protocol.PerspectiveServer {