Skip to content

Commit 9749042

Browse files
committed
servlet: description for CANCELLED status
1 parent cdab410 commit 9749042

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

servlet/src/main/java/io/grpc/servlet/ServletServerStream.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,9 @@ public void cancel(Status status) {
297297
}
298298
transportState.runOnTransportThread(() -> transportState.transportReportStatus(status));
299299
// There is no way to RST_STREAM with CANCEL code, so write trailers instead
300-
close(Status.CANCELLED.withCause(status.asRuntimeException()), new Metadata());
300+
close(Status.CANCELLED.withDescription("servlet io exception")
301+
.withCause(status.asRuntimeException()),
302+
new Metadata());
301303
CountDownLatch countDownLatch = new CountDownLatch(1);
302304
transportState.runOnTransportThread(() -> {
303305
asyncCtx.complete();

0 commit comments

Comments
 (0)