use the new error types to log the reason why a connection is closed

This commit is contained in:
Marten Seemann 2021-05-03 14:00:41 +07:00
parent 5f2cf0422e
commit 1613809ba2
16 changed files with 87 additions and 307 deletions

View file

@ -106,7 +106,7 @@ type Tracer interface {
type ConnectionTracer interface {
StartedConnection(local, remote net.Addr, srcConnID, destConnID ConnectionID)
NegotiatedVersion(chosen VersionNumber, clientVersions, serverVersions []VersionNumber)
ClosedConnection(CloseReason)
ClosedConnection(error)
SentTransportParameters(*TransportParameters)
ReceivedTransportParameters(*TransportParameters)
RestoredTransportParameters(parameters *TransportParameters) // for 0-RTT