don't reset the PTO count on Initial ACKs before address validation

This commit is contained in:
Marten Seemann
2020-05-01 09:58:34 +07:00
parent 15a19f681d
commit 538cbf7dc0
2 changed files with 18 additions and 3 deletions

View File

@@ -292,10 +292,13 @@ func (h *sentPacketHandler) ReceivedAck(ack *wire.AckFrame, encLevel protocol.En
}
}
if h.qlogger != nil && h.ptoCount != 0 {
h.qlogger.UpdatedPTOCount(0)
// Reset the pto_count unless the client is unsure if the server has validated the client's address.
if h.peerCompletedAddressValidation {
if h.qlogger != nil && h.ptoCount != 0 {
h.qlogger.UpdatedPTOCount(0)
}
h.ptoCount = 0
}
h.ptoCount = 0
h.numProbesToSend = 0
h.setLossDetectionTimer()