Skip to content

Conversation

@panchenko
Copy link
Contributor

@panchenko panchenko commented Nov 6, 2025

Fixes #11246
code mostly as in #12360 but trying to use handleInternalError() / cancel() as suggested by @ejona86

@panchenko panchenko changed the title Decompressed gRPC message exceeds maximum size - via handleInternalError() core: Report marshaller error for uncompressed size too large back to the client 2 Nov 6, 2025
private void handleParseError(StatusRuntimeException parseError) {
cancelled = true;
log.log(Level.WARNING, "Cancelling the stream because of parse error", parseError);
stream.cancel(parseError.getStatus().withCause(new CloseWithHeadersMarker()));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be made more obvious with some API changes

@panchenko panchenko marked this pull request as ready for review November 6, 2025 09:08
@kannanjgithub kannanjgithub added the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Nov 6, 2025
@grpc-kokoro grpc-kokoro removed the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Nov 6, 2025
@kannanjgithub kannanjgithub merged commit 14087f8 into grpc:master Nov 6, 2025
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected error when server expands a compressed message to learn it is too large

3 participants