Skip to content

Commit

Permalink
avoid setting the loss timer when amplification limited
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Apr 23, 2020
1 parent 5a642a3 commit c248ff2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions draft-ietf-quic-recovery.md
Expand Up @@ -1217,17 +1217,17 @@ PeerCompletedAddressValidation():
has received HANDSHAKE_DONE

SetLossDetectionTimer():
if (server is at anti-amplification limit):
// The server's alarm is not set if nothing can be sent.
loss_detection_timer.cancel()
return

earliest_loss_time, _ = GetEarliestTimeAndSpace(loss_time)
if (earliest_loss_time != 0):
// Time threshold loss detection.
loss_detection_timer.update(earliest_loss_time)
return

if (server is at anti-amplification limit):
// The server's alarm is not set if nothing can be sent.
loss_detection_timer.cancel()
return

if (no ack-eliciting packets in flight &&
PeerCompletedAddressValidation()):
// There is nothing to detect lost, so no timer is set.
Expand Down

0 comments on commit c248ff2

Please sign in to comment.