mirror of https://github.com/grpc/grpc-java.git
See this PR in netty: https://github.com/netty/netty/pull/9798 . It's possible that one peer has closed the stream, yet another frame from peers arrives after it. This is largely harmless, as explained in the PR from netty repository. If we don't do this, the log will be polluted with these harmless logs. Example that would no longer be logged: ``` Jan 25, 2021 6:23:51 PM io.grpc.netty.NettyServerHandler onStreamError WARNING: Stream Error io.netty.handler.codec.http2.Http2Exception$StreamException: Received DATA frame for an unknown stream 27 at io.netty.handler.codec.http2.Http2Exception.streamError(Http2Exception.java:147) at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.shouldIgnoreHeadersOrDataFrame(DefaultHttp2ConnectionDecoder.java:596) at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onDataRead(DefaultHttp2ConnectionDecoder.java:239) ... ``` |
||
|---|---|---|
| .. | ||
| shaded | ||
| src | ||
| BUILD.bazel | ||
| build.gradle | ||