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
Expand Up @@ -1142,6 +1142,22 @@ Pseudocode for OnPacketSent follows:
SetLossDetectionTimer()
~~~

## On Receiving a Datagram

When a server is blocked by anti-amplification limits, receiving
a datagram unblocks it, even if none of the packets in the
datagram are successfully processed. In such a case, the PTO
timer will need to be re-armed.

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