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

Make sure that closing one direction closes the other, too. #159

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

DirtyHairy
Copy link
Contributor

This PR closes issue #130 . The regression was introduced in commit a2d7aec / PR #100 . As I cannot see any memory issues with the code replaced by #100 I just restored the old behaviour of closing both connections as soon as one of them terminates.

The issue of handling half-open connections mentioned by @leahneukirchen in said issue remains. Ideally, a FIN on connection A should only trigger a closeWrite connection B, and the proxy should keep relaying data from B to A until B is closed by the remote. However, this was not handled before #100 was merged either 😏

@whyvl whyvl merged commit 7bb1be2 into whyvl:master Jan 31, 2025
10 checks passed
@DirtyHairy
Copy link
Contributor Author

Yikes, that was fast 😏 Thank you (and also thank you for wireproxy)!

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