add context to EarlyConnection.NextConnection, handle handshake failures (#4551)

This commit is contained in:
Marten Seemann
2024-06-05 11:51:54 +08:00
committed by GitHub
parent 0db354456a
commit 07acaad2f7
5 changed files with 34 additions and 24 deletions

View File

@@ -224,7 +224,7 @@ type EarlyConnection interface {
// however the client's identity is only verified once the handshake completes.
HandshakeComplete() <-chan struct{}
NextConnection() Connection
NextConnection(context.Context) (Connection, error)
}
// StatelessResetKey is a key used to derive stateless reset tokens.