Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Thomson <mt@lowentropy.net>
  • Loading branch information
ianswett and martinthomson authored May 21, 2020
1 parent f10875e commit 242e38d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions draft-ietf-quic-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ GetPtoTimeAndSpace():
max(4 * rttvar, kGranularity) * (2 ^ pto_count)
# Arm PTO from now when there are no inflight packets
if (no in-flight packets):
return now() + duration, Initial
return (now() + duration), Initial
timeout = infinite
pn_space = Initial
for space in [ Initial, Handshake, ApplicationData ]:
Expand All @@ -1296,10 +1296,9 @@ GetPtoTimeAndSpace():
// ApplicationData include the max_ack_delay in PTO.
duration += max_ack_delay * (2 ^ pto_count)

if (timeout >
time_of_last_ack_eliciting_packet[space] + duration):
timeout =
time_of_last_ack_eliciting_packet[space] + duration
t = time_of_last_ack_eliciting_packet[space] + duration
if (t < timeout):
timeout = t
pn_space = space
return timeout, space

Expand Down

0 comments on commit 242e38d

Please sign in to comment.