On Thu, 24 Jul 2008 15:33:51 +0800
Oscar <[EMAIL PROTECTED]> wrote:

> Does 'suspicious network packet' mean the packets which is hacked?
> If yes, I don't think you need recovery or ignoration, you just
> disconnect the channel.
> 
> Cheers,
> -Oscar
> 
> 
> 
> 
> 
> On Thu, Jul 24, 2008 at 3:03 PM, Wenrui Guo <[EMAIL PROTECTED]>
> wrote:
> 
> > Hi, all
> >
> > I'm going to make my mina program can recovery from the case where
> > acceptor or connector receives suspicious network packet? Who can
> > give me suggestions?
> > I intend to write some protection code thus server can continue to
> > work rather than crashed or loop forever.
> >
> > BR
> > anderson
> >

Hi,
I use the same policy, when something is wrong in the data flow, my
ProtocolDecoder, send an exception and in the IoHandler.exceptionCaugth
I close the session.

what you need to add is temporary blacklisting of IP producing too much
exception.

Julien

Attachment: signature.asc
Description: PGP signature

Reply via email to