only create a single session for duplicate Initials

This commit is contained in:
Marten Seemann
2020-05-29 15:54:25 +07:00
parent 85c19fbb5a
commit dad30e7c33
6 changed files with 123 additions and 58 deletions

View File

@@ -271,8 +271,6 @@ func (c *client) dial(ctx context.Context) error {
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)
errorChan := make(chan error, 1)