Netty 4は、「パイプラインの最後に到達した1つのインバウンドメッセージを破棄しました。パイプライン構成を確認してください」という警告を発行します。どういう意味ですか?どのように処理する必要がありますか?(以前は、受け入れられた回答に従って解決されるまでここで再現されていましたが、それが何を意味し、パイプラインがどのように機能するかについての一般的な説明が必要です)
Nettyフィードバックを最大限に活用しようとすると、クライアント側のパイプラインは次のように設定されます。
pipeline.addLast("logger", new LoggingHandler(LogLevel.TRACE))
pipeline.addLast("HttpRequestEncoder", new HttpClientCodec)
pipeline.addLast("handler", new myHandler)
Nettyによって2つのhttpメッセージが送信され、サーバー側で正常に受信および確認されている間に、クライアント側でログオンしているのは次のとおりです。
12 [main] DEBUG io.netty.util.internal.InternalLoggerFactory - Using Log4J as the default logging framework
164 [nioEventLoopGroup-1-2] DEBUG io.netty.channel.nio.SelectorUtil - Using select timeout of 500
164 [nioEventLoopGroup-1-2] DEBUG io.netty.channel.nio.SelectorUtil - Epoll-bug workaround enabled = false
229 [nioEventLoopGroup-1-2] WARN io.netty.channel.DefaultChannelPipeline - Discarded 1 inbound message(s) that reached at the end of the pipeline. Please check your pipeline configuration.
230 [nioEventLoopGroup-1-2] WARN io.netty.channel.DefaultChannelPipeline - Discarded 1 inbound message(s) that reached at the end of the pipeline. Please check your pipeline configuration.
ロギングは最小限に設定されていますが、次のようになります。
BasicConfigurator.configure
InternalLoggerFactory.setDefaultFactory(new Log4JLoggerFactory)