-
Notifications
You must be signed in to change notification settings - Fork 348
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(translator): Implement tcp idle timeout in ClientTrafficPolicy #3459
Conversation
Signed-off-by: Dingkang Li <dingkang1743@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3459 +/- ##
==========================================
+ Coverage 67.09% 67.11% +0.01%
==========================================
Files 166 166
Lines 19618 19633 +15
==========================================
+ Hits 13163 13176 +13
- Misses 5504 5505 +1
- Partials 951 952 +1 ☔ View full report in Codecov by Sentry. |
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 !
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!
@@ -521,19 +525,34 @@ func translatePathSettings(pathSettings *egv1a1.PathSettings, httpIR *ir.HTTPLis | |||
} | |||
} | |||
|
|||
func translateClientTimeout(clientTimeout *egv1a1.ClientTimeout, httpIR *ir.HTTPListener) error { | |||
func buildClientTimeout(clientTimeout *egv1a1.ClientTimeout) (*ir.ClientTimeout, error) { |
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.
which func name prefix do we prefer here? I see we are using different prefix names for these func, like buildXXX
and translateXXX
?
Is a non blocking comment, but IMO we should unify them.
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.
vote for build
, it's consistent with all the build methods in BTP
Signed-off-by: Dingkang Li <dingkang1743@gmail.com>
What this PR does / why we need it:
Implement tcp idle timeout in ClientTrafficPolicy, follow up #3345
Which issue(s) this PR fixes:
Fixes #3343