-
Notifications
You must be signed in to change notification settings - Fork 352
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
fix: tcp listener is rejected when no route attached #4681
base: main
Are you sure you want to change the base?
fix: tcp listener is rejected when no route attached #4681
Conversation
cb94a37
to
17f3476
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4681 +/- ##
==========================================
+ Coverage 65.53% 65.56% +0.02%
==========================================
Files 211 211
Lines 31954 31973 +19
==========================================
+ Hits 20940 20962 +22
+ Misses 9769 9766 -3
Partials 1245 1245 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
17f3476
to
9bcea0b
Compare
thanks for looking into this @zhaohuabing |
can't connect vs connection reset by peer, the latter seems make more sense as there's a listening port on Envoy for the defined Gateway listener. no tcp listener:
dummy filter chain
|
hey @zhaohuabing I prefer if we dont generate an xds listener for this case |
Create a default route pointing to a static cluster without endpoints when there is no TCPRoutes attached to a TCP listener. This avoids Envoy rejecting a listener without a filter chain and reporting warning.
Fixes #4680
Release Notes: Yes
Alternative consideration:
An alterantive approach could be to not create the xDS listener, but this behavior doesn't align with the Gateway semantics(which does defines a listener) and the behavior of the empty HTTP listener.
Other type of listeners: