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

Update pseudocode to not arm PTO.. #3604

Merged
merged 3 commits into from May 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 12 additions & 5 deletions draft-ietf-quic-recovery.md
Expand Up @@ -1236,16 +1236,23 @@ SetLossDetectionTimer():
loss_detection_timer.cancel()
return

// Determine which PN space to arm PTO for.
sent_time, pn_space = GetEarliestTimeAndSpace(
time_of_last_sent_ack_eliciting_packet)
// Don't arm PTO for ApplicationData until handshake complete.
if (pn_space == ApplicationData &&
handshake is not confirmed):
loss_detection_timer.cancel()
return
if (sent_time == 0):
assert(!PeerCompletedAddressValidation())
sent_time = now()

// Calculate PTO duration
timeout = smoothed_rtt + max(4 * rttvar, kGranularity) +
max_ack_delay
timeout = timeout * (2 ^ pto_count)

sent_time, _ = GetEarliestTimeAndSpace(
time_of_last_sent_ack_eliciting_packet)
if (sent_time == 0)
assert(!PeerCompletedAddressValidation())
sent_time = now()
loss_detection_timer.update(sent_time + timeout)
~~~

Expand Down