Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
チャネルで1秒.write、例外が発生します
.write
「io.netty.handler.codec.CodecException:java.lang.IllegalStateException:予期しないメッセージタイプ:DefaultHttpRequest」。
パイプラインにしかないことを考えると、別の方法で何をすべきか頭を悩まHttpClientCodecせます。Githubからクローンを作成し、クライアント側とサーバー側を実行するmainを実行して、エラーを再現します。
HttpClientCodec
を書く必要がありDefaultFullHttpResponseます。DefaultHttpResponseコンテンツとHttpContentsが不足しており、LastHttpContent従う必要があります。私はこれが確かに混乱していることに同意します。
DefaultFullHttpResponse
DefaultHttpResponse
HttpContent
LastHttpContent