Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Recovery Pseudocode Formatting Consistent #2946

Merged
merged 1 commit into from
Aug 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions draft-ietf-quic-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -1092,11 +1092,11 @@ OnAckReceived(ack, pn_space):
// If the largest acknowledged is newly acked and
// at least one ack-eliciting was newly acked, update the RTT.
if (sent_packets[pn_space][ack.largest_acked] &&
IncludesAckEliciting(newly_acked_packets))
IncludesAckEliciting(newly_acked_packets)):
latest_rtt =
now - sent_packets[pn_space][ack.largest_acked].time_sent
ack_delay = 0
if pn_space == ApplicationData:
if (pn_space == ApplicationData):
ack_delay = ack.ack_delay
UpdateRtt(ack_delay)

Expand Down Expand Up @@ -1176,8 +1176,8 @@ GetEarliestLossTime():
time = loss_time[Initial]
space = Initial
for pn_space in [ Handshake, ApplicationData ]:
if loss_time[pn_space] != 0 &&
(time == 0 || loss_time[pn_space] < time):
if (loss_time[pn_space] != 0 &&
(time == 0 || loss_time[pn_space] < time)):
time = loss_time[pn_space];
space = pn_space
return time, space
Expand Down Expand Up @@ -1401,7 +1401,7 @@ acked_packet from sent_packets.
if (InCongestionRecovery(acked_packet.time_sent)):
// Do not increase congestion window in recovery period.
return
if (IsAppLimited())
if (IsAppLimited()):
// Do not increase congestion_window if application
// limited.
return
Expand Down