-
Notifications
You must be signed in to change notification settings - Fork 927
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug where a request timeout is scheduled after receiving the en…
…tire body (#5614) Motivation: If `ExchangeType` is `UNARY` or `RESPONSE_STREAMING` for a service, a timeout is scheduled after EOS is received. If it takes a long time to receive a full request body, the request will not end with 503 Service Unavailable even after the request timeout set by the user. Modifications: - Immediately fire a `DecodedHttpRequest` when request headers are received in `Http{1,2}RequestDecoder` - `HttpServerHandler` uses `whenAggregated()` to wait for the unary request to be aggregated on behalf of `Http{1,2}RequestDecoder` - Remove some methods specialized for `AggregatedDecodedHttpRequest` has been deleted Result: Unary and response streaming requests are now properly timed out if they fail to receive the body within the designated timeout period.
- Loading branch information
Showing
17 changed files
with
219 additions
and
139 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.