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

Add OnPacketReceived to pseudocode #3653

Merged
merged 9 commits into from
May 19, 2020
16 changes: 16 additions & 0 deletions draft-ietf-quic-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,22 @@ Pseudocode for OnPacketSent follows:
SetLossDetectionTimer()
~~~

## On Receiving a Datagram

Receiving a datagram might allow the server to send if the
server was previously blocked by the anti-amplification limits.
This is necessary even if none of the packets in the datagram
are successfully processed.
ianswett marked this conversation as resolved.
Show resolved Hide resolved

Pseudocode for OnDatagramReceived follows:

~~~
OnDatagramReceived(datagram):
// If this datagram unblocks the server, arm the
// PTO timer to avoid deadlock.
if (server was at anti-amplification limit):
SetLossDetectionTimer()
~~~

## On Receiving an Acknowledgment

Expand Down