move initialization of the client's transport parameters to the session

This commit is contained in:
Marten Seemann
2019-10-28 08:25:45 +07:00
parent b64535e656
commit 35ea8213c5
10 changed files with 37 additions and 89 deletions

View File

@@ -368,6 +368,8 @@ func (c *client) createNewTLSSession(_ protocol.VersionNumber) {
c.version,
)
c.mutex.Unlock()
// It's not possible to use the stateless reset token for the client's (first) connection ID,
// since there's no way to securely communicate it to the server.
c.packetHandlers.Add(c.srcConnID, c)
}