On 1/17/07, Nicolas FROMENT <[EMAIL PROTECTED]> wrote:

>
>
> As you can see, when there is no data available it just returns an
> emty string.
> I would check in.remaining() before reading the header
>
Thanks for your help. As you may see this test is already done in
decodable(). As far as I know decodable is called before decode. So when
readHeader is called there is more than HEADER_LENGHT data? So an empty
string is not return. By the way, let's imagine that it is the case, I
don"t see how it can be related to a duplicate message ? again do i miss
something important ?

You're right, I got confused.
I would put some more logging in your decoder.
I guess you know that, since your decoder is statefull, it should be
not shared with other IoSessions ?

Reply via email to