-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gRPC Trailers-Only response doesn't mark a streaming request as finis…
…hed (#2313) Motivation: If a server returns a `Trailers-Only` response for a streaming request, we never drain the response message-body, because `concat` never subscribes to the next source if the first source fails. As the result, concurrency controller won't mark the request as finished. If the request publisher never completes we will start leaking connections. Modifications: - Enhance `TrailersOnlyErrorTest` to cover blocking client and make sure the HTTP response terminates; - In case of an error in `Trailers-Only` response, subscribe and cancel the response message body to abort the request; - Always check that `Trailers-Only` response doesn't have any further frames on the wire; Result: gRPC response correctly terminates even if client receives a `Trailers-Only` response.
- Loading branch information
1 parent
a99f319
commit 986a80c
Showing
4 changed files
with
110 additions
and
37 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
Oops, something went wrong.