Skip to content

Commit

Permalink
0 means not set
Browse files Browse the repository at this point in the history
  • Loading branch information
martinthomson committed Aug 18, 2020
1 parent c036ffa commit 033500d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions draft-ietf-quic-recovery.md
Expand Up @@ -1517,7 +1517,7 @@ variables as follows:
bytes_in_flight = 0
congestion_recovery_start_time = 0
ssthresh = infinite
first_rtt_sample = never
first_rtt_sample = 0
for pn_space in [ Initial, Handshake, ApplicationData ]:
ecn_ce_counters[pn_space] = 0
~~~
Expand Down Expand Up @@ -1551,7 +1551,7 @@ newly acked_packets from sent_packets.
// Remove from bytes_in_flight.
bytes_in_flight -= acked_packet.sent_bytes

if (first_rtt_sample is never):
if (first_rtt_sample == 0):
first_rtt_sample = now()

// Do not increase congestion_window if application
Expand Down Expand Up @@ -1621,7 +1621,7 @@ Invoked when DetectAndRemoveLostPackets deems packets lost.

// Only look for persistent congestion if the period
// starts after getting the first RTT sample.
assert(first_rtt_sample is not never)
assert(first_rtt_sample != 0)
if (largest_lost.time_sent - pc_period > first_rtt_sample):
return false

Expand Down

0 comments on commit 033500d

Please sign in to comment.