mirror of https://github.com/grpc/grpc-java.git
servlet: set description for CANCELLED status (#11927)
This commit is contained in:
parent
2f52a00364
commit
fca1d3cf43
|
@ -297,7 +297,9 @@ final class ServletServerStream extends AbstractServerStream {
|
||||||
}
|
}
|
||||||
transportState.runOnTransportThread(() -> transportState.transportReportStatus(status));
|
transportState.runOnTransportThread(() -> transportState.transportReportStatus(status));
|
||||||
// There is no way to RST_STREAM with CANCEL code, so write trailers instead
|
// There is no way to RST_STREAM with CANCEL code, so write trailers instead
|
||||||
close(Status.CANCELLED.withCause(status.asRuntimeException()), new Metadata());
|
close(Status.CANCELLED.withDescription("Servlet stream cancelled")
|
||||||
|
.withCause(status.asRuntimeException()),
|
||||||
|
new Metadata());
|
||||||
CountDownLatch countDownLatch = new CountDownLatch(1);
|
CountDownLatch countDownLatch = new CountDownLatch(1);
|
||||||
transportState.runOnTransportThread(() -> {
|
transportState.runOnTransportThread(() -> {
|
||||||
asyncCtx.complete();
|
asyncCtx.complete();
|
||||||
|
|
Loading…
Reference in New Issue