어쩌면 이것은 분명히 묻는 질문 일 수도 있지만, 나는 너무 새로운 것입니다.Netty HttpChunckAggregator stateful -> 경합 조건?
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;
}
와 NIO의 Netty 서버 : 그 날 의심 ... 다음 파이프 라인에 특정 채널을 제공 할?
모든 새로운 채널이 새로운 청크 애그리 게이터를 생성하지만 모든 청크 메시지가 동일한 채널에서 수신되는 것을 볼 수 있습니까?