Skip to content

Conversation

Mark-Simulacrum
Copy link
Collaborator

Release Summary:

  • fix(s2n-quic-dc): properly detect truncated streams

Resolved issues:

n/a

Description of changes:

Previously we ignored the return from poll_read on the underlying TcpStream (poll_fill_once calls into that), which meant that a truncated stream caused effectively a busy loop trying to parse the last packet to be sent on the stream.

Call-outs:

This fixes a known case but doesn't fix the class of bug definitively -- there may be other poll_read's hiding whose output is ignored. Unfortunately I'm not sure we have any good tooling for catching that, but I'll attempt to manually audit soon.

Testing:

See added unit test.

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

Previously we ignored the return from poll_read on the underlying
TcpStream (poll_fill_once calls into that), which meant that a truncated
stream caused effectively a busy loop trying to parse the last packet to
be sent on the stream.
@CarolYeh910 CarolYeh910 merged commit 95b59e1 into aws:main Jun 25, 2025
118 checks passed
@Mark-Simulacrum Mark-Simulacrum deleted the fix-truncation branch June 25, 2025 19:56
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