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

Go Network Filter: support enableHalfClose for upstream connection #34196

Merged
merged 17 commits into from
May 24, 2024

Conversation

duxin40
Copy link
Contributor

@duxin40 duxin40 commented May 16, 2024

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:]

duxin and others added 6 commits May 15, 2024 20:35
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>
Copy link

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.

🐱

Caused by: #34196 was opened by duxin40.

see: more, trace.

duxin and others added 2 commits May 16, 2024 16:05
Signed-off-by: duxin <duxin40@gmail.com>
@doujiang24
Copy link
Member

Thanks @duxin40 , looks good after a quick look, will take a deep look soon.

duxin and others added 7 commits May 20, 2024 10:41
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>
@duxin40 duxin40 requested a review from doujiang24 May 20, 2024 08:44
duxin and others added 2 commits May 20, 2024 18:53
Signed-off-by: duxin <duxin40@gmail.com>
update panic info for EnableHalfClose func
Copy link
Member

@doujiang24 doujiang24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, lgtm

@duxin40 duxin40 requested a review from doujiang24 May 20, 2024 15:29
@duxin40
Copy link
Contributor Author

duxin40 commented May 21, 2024

@doujiang24 sorry for clicking on the button (request for review) 😂, could you please help approve again~

Copy link
Member

@doujiang24 doujiang24 left a 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

@zuercher zuercher enabled auto-merge (squash) May 22, 2024 16:19
@doujiang24
Copy link
Member

Thanks @zuercher , as extension maintainer does not have permission to merge/approve, please help to merge it manually, thanks very much :)

@doujiang24
Copy link
Member

cc @wbpcode @phlax Thanks~

@zuercher zuercher merged commit 53bcb74 into envoyproxy:main May 24, 2024
52 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.

None yet

4 participants