-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Go Network Filter: support enableHalfClose for upstream connection #34196
Conversation
Signed-off-by: duxin <duxin40@gmail.com>
Signed-off-by: duxin <duxin40@gmail.com>
Signed-off-by: duxin <duxin40@gmail.com>
支持network golang connection enable-half-close
Signed-off-by: duxin <duxin40@gmail.com>
add enableHalfClose code in example
Hi @duxin40, welcome and thank you for your contribution. We will try to review your Pull Request as quickly as possible. In the meantime, please take a look at the contribution guidelines if you have not done so already. |
Signed-off-by: duxin <duxin40@gmail.com>
format upstream.cc
Thanks @duxin40 , looks good after a quick look, will take a deep look soon. |
Signed-off-by: duxin <duxin40@gmail.com>
Signed-off-by: duxin <duxin40@gmail.com>
Signed-off-by: duxin <duxin40@gmail.com>
Signed-off-by: duxin40 <33946910+duxin40@users.noreply.github.com>
add panic when connEnableHalfCloseFunc is nil
Signed-off-by: duxin <duxin40@gmail.com>
format code for filter.go
Signed-off-by: duxin <duxin40@gmail.com>
update panic info for EnableHalfClose func
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, lgtm
@doujiang24 sorry for clicking on the button (request for review) 😂, could you please help approve again~ |
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, and it's good to merge cc @zuercher Thanks
Thanks @zuercher , as extension maintainer does not have permission to merge/approve, please help to merge it manually, thanks very much :) |
In summary
This PR will add the support to enableHalfClose for upstream connection in go network filter, if user set enableHalfClose to true, reading a remote upstream half-close will not fully close the connection.
Future Plan
support for go network filter can be configured together with HCM, so user can specify upstream conn enableHalfClose on L4 and manage traffic on L7.
Let me know if this sounds reasonable, and thank you all for the review!
Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]