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 duplicate FIN in the drop glue #142

Merged
merged 1 commit into from
Oct 20, 2023
Merged

Fix duplicate FIN in the drop glue #142

merged 1 commit into from
Oct 20, 2023

Conversation

mcches
Copy link
Contributor

@mcches mcches commented Oct 20, 2023

If the stream is shutdown manually it sends a FIN on the write half,
however we don't check the state in the drop implementation, which led
to a duplicate FIN being sent.

To fix, is_shutdown is checked before sending the FIN.

If the stream is shutdown manually it sends a FIN on the write half,
however we don't check the state in the drop implementation, which led
to a duplicate FIN being sent.

To fix, `is_shutdown` is checked before sending the FIN.
@mcches mcches requested a review from mh32 October 20, 2023 16:43
@mcches
Copy link
Contributor Author

mcches commented Oct 20, 2023

Verified 2x of these before, only one after the change.

2023-10-20T16:36:05.204647Z TRACE node{name="client"}: turmoil: Send src=192.168.0.2:49152 dst=192.168.0.1:1738 protocol=TCP FIN

@mcches mcches merged commit 5c3c732 into main Oct 20, 2023
3 checks passed
@mcches mcches deleted the fin branch October 20, 2023 16:47
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