mirror of https://github.com/grpc/grpc-java.git
TransportSet mandates that transportShutdown() has been called prior to transportTerminated(). OkHttp transport tries to meet this requirement by calling startGoAway() which calls transportShutdown() in both the normal path and the error path. However, the error path only caught Exception. If an Error is thrown from the try-block, calling transportTerminated() in the finally block will cause a check failure in TransportSet, shadowing the original Error, which is undesirable for debugging. Catching Throwable here is more helpful. |
||
|---|---|---|
| .. | ||
| src | ||
| third_party/okhttp | ||
| build.gradle | ||