forked from quic-go/quic-go
only qlog the PTO count reset when the PTO count actually changed
This commit is contained in:
@@ -164,10 +164,10 @@ func (h *sentPacketHandler) dropPackets(encLevel protocol.EncryptionLevel) {
|
|||||||
panic(fmt.Sprintf("Cannot drop keys for encryption level %s", encLevel))
|
panic(fmt.Sprintf("Cannot drop keys for encryption level %s", encLevel))
|
||||||
}
|
}
|
||||||
h.setLossDetectionTimer()
|
h.setLossDetectionTimer()
|
||||||
h.ptoCount = 0
|
if h.qlogger != nil && h.ptoCount != 0 {
|
||||||
if h.qlogger != nil {
|
|
||||||
h.qlogger.UpdatedPTOCount(time.Now(), 0)
|
h.qlogger.UpdatedPTOCount(time.Now(), 0)
|
||||||
}
|
}
|
||||||
|
h.ptoCount = 0
|
||||||
h.ptoMode = SendNone
|
h.ptoMode = SendNone
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -293,10 +293,10 @@ func (h *sentPacketHandler) ReceivedAck(ack *wire.AckFrame, encLevel protocol.En
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
h.ptoCount = 0
|
if h.qlogger != nil && h.ptoCount != 0 {
|
||||||
if h.qlogger != nil {
|
|
||||||
h.qlogger.UpdatedPTOCount(rcvTime, 0)
|
h.qlogger.UpdatedPTOCount(rcvTime, 0)
|
||||||
}
|
}
|
||||||
|
h.ptoCount = 0
|
||||||
h.numProbesToSend = 0
|
h.numProbesToSend = 0
|
||||||
|
|
||||||
h.setLossDetectionTimer()
|
h.setLossDetectionTimer()
|
||||||
|
|||||||
Reference in New Issue
Block a user