Ashish wrote:
On a similar note, on your code snippetwhile (in.hasRemaining()) { ... decoder.decode(session, in, decoderOut); } call decode only when the message is complete. For each iteration calling this can be expensive. Something like isMessageComplete() implementation, which tells you when the message can be decoded and then call decode.
Wasn't my code snippet. That code is in ProtocolCodeFilter. DR
