Hi, I am using netty TCP to receive bytes. If the message size is big, its getting read in chunks, can you please suggest how to avoid this. I want to be able to read the entire message. I was sending a message of 32KB. I see that the first 1024bytes were read and the flow proceeded to the next processors in the route. How to avoid this.Adding the route & DEBUG for reference.
<from uri="netty4:tcp://<IP_ADDRESS>:9993?allowDefaultCodec=false&exchangePattern=InOut"/> <process ref="api.gway.getput.get.outboundRequest"/> <log message="consumer route called . ${header.userId2} .${header.CamelHttpMethod} . ${body}"/> .... .... .. DEBUG LOG: NettyEventExecutorGroup] DEBUG org.apache.camel.component.netty4.NettyConsumer - Channel: [id: 0x54bae73e, L:/15.213.85.104:9993 - R:/15.213.82.141:3039] received body: UnpooledUnsafeNoCleanerDirectByteBuf(ridx: 0, widx: 1024, cap: 1024) reading body the bytebuf is direct 16:36:44.654 [Camel (camel-1) thread #3 - NettyEventExecutorGroup] INFO consumer - consumer route called . .POST .. .. 16:36:44.684 [Camel (camel-1) thread #3 - NettyEventExecutorGroup] DEBUG org.apache.camel.component.netty4.NettyConsumer - Channel: [id: 0x54bae73e, L:/15.213.85.104:9993 - R:/15.213.82.141:3039] received body: UnpooledUnsafeNoCleanerDirectByteBuf(ridx: 0, widx: 16384, cap: 16384) reading body the bytebuf is direct 16:36:44.827 [Camel (camel-1) thread #3 - NettyEventExecutorGroup] INFO consumer - consumer route called . .POST . . -- Regards, Rohan Emmanuel