Hi Sungwon,

On 9/3/07, Sungwon Jung <[EMAIL PROTECTED]> wrote:
> Hello. I'm develop server with MINA 1.1.1.
>
> 1) client send packet to server.
> message is FF 00 00 01 10 00 00 00 00 00 00
> 2) server received packet.
> FF 00 00 01 10 00 00 00 00 00 00
>
> it's right.
>
> but,
> 3) and then client send other packet to server
> message is FF 00 00 01 20 00 00 00 00 00 00
> 4) server received packet
> FF 00 00 01 10 00 00 00 00 00 00 FF 00 00 01 20 00 00 00 00 00 00
>
> it's wrong. server should receive only FF 00 00 01 20 00 00 00 00 00 00.
> server received [before before packet][before packet].... packet is increase.

Are you using CumulativeProtocolDecoder or something similar?  If so,
you might not have changed the buffer position after decoding a
message.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to