-
Notifications
You must be signed in to change notification settings - Fork 831
api: add more timeout fields to ClientTimeout #9315
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
Merged
zhaohuabing
merged 12 commits into
envoyproxy:main
from
HusseinKabbout:support-more-timeouts
Aug 6, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b49e117
Extend timeout API to include new settings
4dba375
make generate gen-check
fe28a15
Make naming less envoy specific
6ae7737
Move ConnectionInspectionTimeout into TCP timeout section
da9302b
Implement translation for timeouts
67db6a7
Align default values in api definition with Envoy Proxy and regenerate
b4affa4
Add changelog entry
9f5c45a
Test whether translation works for timeouts
2c56122
Rename HandshakeTimeout to TLSHandshakeTimeout
9096966
Accept suggestion
HusseinKabbout 07f5fc2
Mention that connection inspection timeout is per socket
1c9779f
Add xds translation tests for the new timeout fields
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
internal/xds/translator/testdata/in/xds-ir/client-listener-scoped-timeout.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| http: | ||
| - name: "first-listener" | ||
| address: "::" | ||
| port: 10080 | ||
| hostnames: | ||
| - "*" | ||
| path: | ||
| mergeSlashes: true | ||
| escapedSlashesAction: UnescapeAndRedirect | ||
| routes: | ||
| - name: "first-route" | ||
| hostname: "*" | ||
| destination: | ||
| name: "first-route-dest" | ||
| settings: | ||
| - endpoints: | ||
| - host: "1.2.3.4" | ||
| port: 50000 | ||
| name: "first-route-dest/backend/0" | ||
| timeout: | ||
| tcp: | ||
| connectionInspectionTimeout: "15s" | ||
| http: | ||
| requestReceivedTimeout: "5s" | ||
| idleTimeout: "10s" | ||
| - name: "second-listener" | ||
| address: "::" | ||
| port: 10080 | ||
| hostnames: | ||
| - "*" | ||
| routes: | ||
| - name: "second-route" | ||
| hostname: "*" | ||
| destination: | ||
| name: "second-route-dest" | ||
| settings: | ||
| - endpoints: | ||
| - host: "1.2.3.4" | ||
| port: 50000 | ||
| name: "second-route-dest/backend/0" | ||
| timeout: | ||
| tcp: | ||
| connectionInspectionTimeout: "10s" | ||
| idleTimeout: "1200s" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
can you add a test case for xds translator to show the result of these new knobs?
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.
I have added xds translation tests but found out that we also have the same issues for filter chain specific settings. If for example two listeners with the same address / port have two different values for
requestReceivedTimeout(already existing setting) then the resulting filter chain will only contain the settings of the first listener. I think it is the same issue with the handshake timeout.