Skip to content

Commit e73d6d4

Browse files
committed
with cause initially
1 parent 4e0d276 commit e73d6d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/java/io/grpc/internal/MessageDeframer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ private void verifySize() {
521521
if (count > maxMessageSize) {
522522
throw Status.RESOURCE_EXHAUSTED
523523
.withDescription("Decompressed gRPC message exceeds maximum size " + maxMessageSize)
524+
.withCause(new CloseWithHeadersMarker())
524525
.asRuntimeException();
525526
}
526527
}

core/src/main/java/io/grpc/internal/ServerCallImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,7 @@ private void messagesAvailableInternal(final MessageProducer producer) {
337337
GrpcUtil.closeQuietly(message);
338338
GrpcUtil.closeQuietly(producer);
339339
call.cancelled = true;
340-
call.handleInternalError(InternalStatus.asRuntimeExceptionWithoutStacktrace(
341-
e.getStatus().withCause(new CloseWithHeadersMarker()), null));
340+
call.handleInternalError(e);
342341
return;
343342
}
344343
message.close();

0 commit comments

Comments
 (0)