-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When gRPC implementations encounter an underlying transport error, they surface the error via an `UNAVAILABLE` gRPC status code. Linkerd breaks this behavior by converting these errors to stream resets, which instead appear as an `UNKNOWN` error to applications. This change modifies the proxy's error handling logic to set the the correct gRPC status code when a stream fails with a hyper error, which should work more seamlessly with gRPC error handling. This status is only set when the request's content-type indicates the stream is sending gRPC messages.
- Loading branch information
1 parent
c72c5f5
commit 610309e
Showing
2 changed files
with
135 additions
and
59 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