This is almost a duplicate of #3996. That issue was ostensibly fixed in #11073. (And that same PR also seems to have fixed the issue reported in #10971.)
However, that fix seems to only work reliably when the error pertains to the first request message in a stream. So it works fine for unary and server-stream RPCs. However, for client-stream and bidi-stream RPCs, if some message in the request stream after the first one exceeds the configured max size, the old behavior still exists:
- But then a RST_STREAM frame is sent and the client instead observes a CANCELLED code.
This is almost a duplicate of #3996. That issue was ostensibly fixed in #11073. (And that same PR also seems to have fixed the issue reported in #10971.)
However, that fix seems to only work reliably when the error pertains to the first request message in a stream. So it works fine for unary and server-stream RPCs. However, for client-stream and bidi-stream RPCs, if some message in the request stream after the first one exceeds the configured max size, the old behavior still exists:
A warning is logged with an exception that indicates the expected/correct error code: