-
Notifications
You must be signed in to change notification settings - Fork 581
feat: gRPC streaming timeout #7194
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
Conversation
Add StreamTimeout field to HTTPTimeout struct in BackendTrafficPolicy to enable configuration of timeouts specifically for gRPC streaming requests. Key changes: 1. Add StreamTimeout field to api/v1alpha1/timeout_types.go 2. Add StreamTimeout field to internal/ir/xds.go HTTPTimeout 3. Update buildClusterSettingsTimeout to process StreamTimeout 4. Update XDS translation to use StreamTimeout for gRPC routes (IsHTTP2) 5. Add getEffectiveTimeout function to prioritize StreamTimeout for gRPC routes When StreamTimeout is set to 0s, timeouts are disabled for streaming requests. This resolves the 15-second timeout limitation for gRPC streaming calls. Signed-off-by: Shivam Mittal <[email protected]>
Update CRDs, Helm charts, and other generated files to include the new StreamTimeout field in HTTPTimeout structs. Signed-off-by: Shivam Mittal <[email protected]>
Signed-off-by: shiavm006 <[email protected]>
Signed-off-by: jukie <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7194 +/- ##
==========================================
+ Coverage 72.02% 72.04% +0.02%
==========================================
Files 230 230
Lines 33405 33420 +15
==========================================
+ Hits 24059 24079 +20
+ Misses 7594 7591 -3
+ Partials 1752 1750 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: jukie <[email protected]>
Signed-off-by: jukie <[email protected]>
e1ccce4 to
297892f
Compare
|
/retest |
Signed-off-by: jukie <[email protected]>
056651d to
506b768
Compare
Signed-off-by: jukie <[email protected]>
|
/retest |
Signed-off-by: Isaac <[email protected]>
Signed-off-by: jukie <[email protected]>
Signed-off-by: Isaac <[email protected]>
Signed-off-by: jukie <[email protected]>
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
Signed-off-by: jukie <[email protected]>
|
/retest |
Signed-off-by: Isaac <[email protected]>
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
|
/retest |
1 similar comment
|
/retest |
|
/retest |
What type of PR is this?
What this PR does / why we need it:
Carries over changes from stale PR #6508
with linting and full implementation ofwill handle in a follow-upGrpcTimeoutHeaderMaxWhich issue(s) this PR fixes:
Fixes #5446
Release Notes: Yes