buffer corruption in camel-netty?

2012-03-09 Thread tenderice
I got a strange error when using netty(with camel), we use LengthFieldBasedFrameDecoder for communication, sometimes got two messages "merged" into one, and hence the forthcoming data get all wrong. for example: client send two messages: [10] and [10] where [10]

Re: buffer corruption in camel-netty?

2012-03-10 Thread tenderice
anybody helps? -- View this message in context: http://camel.465427.n5.nabble.com/buffer-corruption-in-camel-netty-tp5551122p5554011.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: buffer corruption in camel-netty?

2012-03-18 Thread tenderice
well, this proved to be a "bug" of camel-netty component, I will post a fix to camel project later on. Before that, please be careful using the camel-netty component, especially do not use encoders/decoders not mark with @sharable annotation, it will lead to the problem since state maybe shared am