camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nil <icicn...@hotmail.com>
Subject Re: Camel mina : data truncated to 1024 bytes
Date Fri, 08 Mar 2013 06:42:21 GMT
We finally find the problem which was in our ProtocolEncoder implementation.
In fact, the doDecode was reading just 1024 first bytes in the ByteBuffer
whereas our frame (which know its length) was indicating more bytes. To
prevent that, we resume reading in IoSession and returns false in doDocode
if our length is not the same as remaining in the ByteBuffer. 

Thanks for all.

NIL



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-mina-data-truncated-to-1024-bytes-tp5728733p5728804.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message