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 bug where stream may close before sending ACK for remote END packet #223

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

jthomas43
Copy link
Contributor

When a stream receives both

  1. an END packet and
  2. an ACK for their END packet

in the same on_uv_poll call then the stream will close before sending the ACK for the END packet (1). there are a few solutions possible, this fix moves advancing from UDX_STREAM_ENDING_REMOTE -> UDX_STREAM_ENDED_REMOTE until the ACK to the END packet is sent.

…d packet for a stream would cause the stream to close before sending the ack to the remote. the solution is to delay setting REMOTE_ENDED until the ack is sent
@mafintosh mafintosh merged commit c0aedb5 into holepunchto:main Nov 8, 2024
3 checks passed
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.

2 participants