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

fix(s2n-quic-transport): reset PTO backoff once per space discard #1717

Merged
merged 1 commit into from
Apr 21, 2023

Conversation

toidiu
Copy link
Contributor

@toidiu toidiu commented Apr 20, 2023

Description of changes:

PTO is a loss recovery mechanism that works by sending packet probes to the peer to trigger an acknowledgement. Repeated probes are separated by a time value calculated using the round trip time estimate and a backoff factor. The backoff factor is reset each time a packet number space is discarded, as this is an indication of connection progress. During the handshake, this backoff factor was being reset each time a handshake packet was transmitted. This PR fixes this by only resetting the backoff factor once when the initial space is discarded.

Testing:

Adds an integration test.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@toidiu toidiu marked this pull request as ready for review April 20, 2023 23:02
camshaft
camshaft previously approved these changes Apr 20, 2023
camshaft
camshaft previously approved these changes Apr 20, 2023
@toidiu toidiu enabled auto-merge (squash) April 20, 2023 23:32
@toidiu toidiu disabled auto-merge April 20, 2023 23:32
@toidiu toidiu merged commit 864dbdc into main Apr 21, 2023
@toidiu toidiu deleted the ak-fix_space_discard branch April 21, 2023 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants