qlog received Retry packets

This commit is contained in:
Marten Seemann
2020-01-27 12:59:16 +07:00
parent b1a3e7a00b
commit a58bcb747b
6 changed files with 57 additions and 5 deletions

View File

@@ -791,6 +791,9 @@ func (s *session) handleRetryPacket(hdr *wire.Header, data []byte) bool /* was t
}
s.logger.Debugf("<- Received Retry")
s.logger.Debugf("Switching destination connection ID to: %s", hdr.SrcConnectionID)
if s.qlogger != nil {
s.qlogger.ReceivedRetry(time.Now(), hdr)
}
s.origDestConnID = s.handshakeDestConnID
newDestConnID := hdr.SrcConnectionID
s.receivedRetry = true