File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
core/src/main/java/io/grpc/internal Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments