-
Notifications
You must be signed in to change notification settings - Fork 985
forkproxy: proxy device early disconnect fix #15178
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
forkproxy: proxy device early disconnect fix #15178
Conversation
22a33c0 to
2cc87b2
Compare
06f7ff7 to
60c2127
Compare
60c2127 to
9955ecf
Compare
|
I'm going to wait until the tests pass before reviewing :) |
e4cf20f
3a8b0bd to
22ff488
Compare
Tests passing ✅ |
5f29f74 to
94f322b
Compare
3655347 to
ca07171
Compare
ca07171 to
3226489
Compare
0f5c321 to
c7f028e
Compare
tomponline
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like some changes needed to the for loop.
2350a2a to
0bc211b
Compare
…lay` function `errSnd` -> `errSend` `errRcv` -> `errRecv` This aligns better with `chSend` and `chRecv`. Signed-off-by: Kadin Sayani <[email protected]>
…osed TCP connections Fixes canonical#15024. This commit reworks the `genericRelay` function to support half-closed TCP connections. `genericRelay` waits for both sending and receiving to complete when copying data via proxy. When one side finishes, TCP connections are closed on the write side, allowing data to still be received. Signed-off-by: Kadin Sayani <[email protected]>
Signed-off-by: Kadin Sayani <[email protected]>
0bc211b to
7d74a1b
Compare
Thanks for your review. I've addressed all comments. |
simondeziel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
tomponline
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm thanks!
Fixes #15024.