-
Notifications
You must be signed in to change notification settings - Fork 360
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
feat: set tcp proxy listener buffer #1306
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1306 +/- ##
==========================================
- Coverage 61.88% 61.83% -0.06%
==========================================
Files 85 85
Lines 10852 10853 +1
==========================================
- Hits 6716 6711 -5
- Misses 3692 3697 +5
- Partials 444 445 +1
... and 2 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
internal/xds/translator/listener.go
Outdated
@@ -39,6 +40,7 @@ func buildXdsTCPListener(name, address string, port uint32) *listenerv3.Listener | |||
Filter: listenerAccessLogFilter, | |||
}, | |||
}, | |||
PerConnectionBufferLimitBytes: wrapperspb.UInt32(32768), |
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.
should EG support to custom this?
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.
lets raise a issue for this ? #24 is always a back up option
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.
If so, we need to add new apis in envoyproxy too, let us keep it in this way, unless someone requests for it.
internal/xds/translator/listener.go
Outdated
@@ -39,6 +40,7 @@ func buildXdsTCPListener(name, address string, port uint32) *listenerv3.Listener | |||
Filter: listenerAccessLogFilter, | |||
}, | |||
}, | |||
PerConnectionBufferLimitBytes: wrapperspb.UInt32(32768), |
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.
would be great if this is a magic number const, with a link to https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/listener/v3/listener.proto#envoy-v3-api-field-config-listener-v3-listener-per-connection-buffer-limit-bytes
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.
Done
Signed-off-by: bitliu <bitliu@tencent.com>
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.
🚀
OK, I found that |
|
Part of: #1048