たぶんこれは明らかな質問ですが、私はnettyに慣れていません。
HttpChunckAggregatorクラスを見ると、ステートフルであることがわかります。それは私を疑わせます...次のパイプラインを持つ特定のチャネルを考えると:
private MyServerHandler handler;
public ChannelPipeline getPipeline() throws Exception {
ChannelPipeline pipeline = pipeline();
pipeline.addLast("decoder",new HttpRequestDecoder());
pipeline.addLast("chunkAggregator",new HttpChunkAggregator(4194304));
pipeline.addLast("encoder",new HttpResponseEncoder());
pipeline.addLast("chunkSeparator",new HttpChunkSeparator(4194304));
pipeline.addLast("handler", handler); //Singleton
return pipeline;
}
およびNIONettyサーバーの場合、チャンク化されたメッセージとマルチスレッドの場合に競合状態を取得できますか?
すべての新しいチャネルが新しいチャンクアグリゲーターを作成するのがわかりますが...すべてのチャンクメッセージは同じチャネルで受信されますか?