Merge pull request #3153 from lucas-clemente/trace-version-selection

trace and qlog version selection / negotiation
This commit is contained in:
Marten Seemann 2021-04-28 18:13:18 +07:00 committed by GitHub
commit 0413afd615
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 170 additions and 4 deletions

View file

@ -105,6 +105,7 @@ type Tracer interface {
// A ConnectionTracer records events.
type ConnectionTracer interface {
StartedConnection(local, remote net.Addr, srcConnID, destConnID ConnectionID)
NegotiatedVersion(chosen VersionNumber, clientVersions, serverVersions []VersionNumber)
ClosedConnection(CloseReason)
SentTransportParameters(*TransportParameters)
ReceivedTransportParameters(*TransportParameters)