Exception Handling in the provided Channel Handlers

Utkarsh Srivastava utkarsh at gmail.com
Mon Mar 23 19:57:53 EDT 2009


Hi,

I want to use some of the provided channel handlers, e.g.,
LengthFieldBasedFrameDecoder. However, my question is what happens if the
client sends a malformed packet, e.g, one that has a huge length encoded in
the first 4 bytes. Currently, the handler throws an exception which will
probably cause the connection to be closed on the client.

I would instead want to send a nice error message back to client. How can I
do that?

Thanks
utkarsh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20090323/f047cba0/attachment.html 


More information about the netty-users mailing list