-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only send a serialized Status in the gRPC protocol if it has details (#…
…713) In the gRPC protocol, Connect would always serialize a `Status` proto and return it in the `Grpc-Status-Details-Bin` trailer. This differs from the official gRPC Go library's behavior, which is to only emit that header if the status has non-empty details. The remaining properties (`message` and `code`) are still returned via dedicated headers, so returning the encoded `Status` message is redundant. This PR aligns Connect's gRPC protocol with the grpc-go behavior, which also reduces the wire size of error responses in the common case that no details are provided.
- Loading branch information
Showing
2 changed files
with
37 additions
and
27 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