mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Therning <nik...@trillian.se>
Subject Re: sending empty HeapBuffers
Date Wed, 07 Mar 2007 09:45:51 GMT
Csaba Endre Simon wrote:
> Hi All,
>
> Running the org.apache.mina.example.sumup example, I got exactly the
> same behavior. Logs attached for the client and the server.
>
> Mina version is 1.0.2.
>
> This is a bug? Should I open a JIRA?

This is normal MINA behavior when using ProtocolCodecFilter. The empty
ByteBuffer you're seeing is just a marker which MINA uses to keep track
of the original message you wrote before it was encoded into a
ByteBuffer by your ProtocolEncoder. Without it ProtocolCodecFilter won't
be able to call messageSent() properly.

-- 
Niklas Therning
www.spamdrain.net


Mime
View raw message