Skip to content

Commit

Permalink
Update draft-ietf-quic-recovery.md
Browse files Browse the repository at this point in the history
Remove else
  • Loading branch information
ianswett committed Dec 4, 2018
1 parent 17dd53f commit bd5e1f2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions draft-ietf-quic-recovery.md
Expand Up @@ -850,18 +850,18 @@ Pseudocode for SetLossDetectionTimer follows:
// Early retransmit timer or time loss detection.
loss_detection_timer.set(loss_time)
return
else:
// RTO or TLP timer
// Calculate RTO duration
timeout =
smoothed_rtt + 4 * rttvar + max_ack_delay
timeout = max(timeout, kMinRTOTimeout)
timeout = timeout * (2 ^ rto_count)
if (tlp_count < kMaxTLPs):
// Tail Loss Probe
tlp_timeout = max(1.5 * smoothed_rtt
+ max_ack_delay, kMinTLPTimeout)
timeout = min(tlp_timeout, timeout)

// RTO or TLP timer
// Calculate RTO duration
timeout =
smoothed_rtt + 4 * rttvar + max_ack_delay
timeout = max(timeout, kMinRTOTimeout)
timeout = timeout * (2 ^ rto_count)
if (tlp_count < kMaxTLPs):
// Tail Loss Probe
tlp_timeout = max(1.5 * smoothed_rtt
+ max_ack_delay, kMinTLPTimeout)
timeout = min(tlp_timeout, timeout)

loss_detection_timer.set(
time_of_last_sent_retransmittable_packet + timeout)
Expand Down

0 comments on commit bd5e1f2

Please sign in to comment.