use the HandshakeComplete() context for accepting sessions in the server

This commit is contained in:
Marten Seemann
2019-07-06 17:37:15 +07:00
parent 3724f91f33
commit b06d7b0cba
8 changed files with 70 additions and 107 deletions

View File

@@ -513,7 +513,6 @@ func (s *session) handleHandshakeComplete() {
s.handshakeComplete = true
s.handshakeCompleteChan = nil // prevent this case from ever being selected again
s.handshakeCtxCancel()
s.sessionRunner.OnHandshakeComplete(s)
// The client completes the handshake first (after sending the CFIN).
// We need to make sure it learns about the server completing the handshake,