make it possible to get the PTO with and without max_ack_delay

This commit is contained in:
Marten Seemann
2019-11-03 12:48:57 +07:00
parent c5b76e4f86
commit d00828b762
5 changed files with 14 additions and 7 deletions

View File

@@ -329,7 +329,7 @@ func (h *sentPacketHandler) setLossDetectionTimer() {
}
// PTO alarm
h.alarm = h.lastSentAckElicitingPacketTime.Add(h.rttStats.PTO() << h.ptoCount)
h.alarm = h.lastSentAckElicitingPacketTime.Add(h.rttStats.PTO(true) << h.ptoCount)
}
func (h *sentPacketHandler) detectLostPackets(