Commit 578021b
authored
fix(grpc): Handle timeouts with a DeadlineExceeded error (#3302)
When the proxy encounters gateway timeouts, it reports a gRPC Unavailable status
code. This is at odds with the [grpc
docs](https://grpc.io/docs/guides/deadlines/) which suggest that
DeadlineExceeded should be used.
This change updates the proxy's error handler to return DeadlineExceeded when a
gRPC request encounters a timeout.1 parent 684e8f4 commit 578021b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
0 commit comments