-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
b/176912395: Automatically configure stream idle timeouts (#457)
**Background**: See discussion in #455 **Implementation**: When `deadline` is set in a backend rule, override the `stream_idle_timeout` for that operation to match the deadline. Created a flag `--stream_idle_timeout` to hold the default value and increase testability, but the flag is **not exposed** to the API producer. The current solution fixes both cases: 1) Non-streaming HTTP requests over 5m will be supported by increasing the `deadline`. HTTP 408 will never be returned. Only HTTP 504 will occur once the configured deadline is met. 2) For non-unary gRPC methods, user can configure the `deadline`. We disable request timeouts for streaming methods. Instead, `deadline` will configure stream idle time. So there is no need for the API Producer to set a flag. Fixes #455
- Loading branch information
Showing
21 changed files
with
815 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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
Oops, something went wrong.