unsigned long problems

Milos Negovanovic milos.negovanovic at googlemail.com
Sat Apr 24 16:51:43 EDT 2010


On Sat, Apr 24, 2010 at 09:25:51PM +0100, Milos Negovanovic wrote:
> Hi all,
> 
> I am using netty to build EPP(extensible provisioning protocol) server!
> 
> My pipeline looks like this:
> 
> pipeline.addLast("ssl", new SslHandler(engine));
> pipeline.addLast("framer", new LengthFieldBasedFrameDecoder(1024*1024, 0, 4, -4, 4));
> pipeline.addLast("decoder", new StringDecoder());
> pipeline.addLast("encoder", new StringEncoder());
> pipeline.addLast("prepender", new LengthFieldPrepender(4, true));
> //then businesslogic
> pipeline.addLast("handler", new EppServerHandler());

Ah! changing the order in pipeline seems to have fixed it ... this
works:

pipeline.addLast("ssl", new SslHandler(engine));
pipeline.addLast("framer", new LengthFieldBasedFrameDecoder(1024*1024, 0, 4, -4, 4));
pipeline.addLast("decoder", new StringDecoder());
pipeline.addLast("prepender", new LengthFieldPrepender(4, true));
pipeline.addLast("encoder", new StringEncoder());
//then businesslogic
pipeline.addLast("handler", new EppServerHandler());

prepender before encoder ... :) still new to netty.

I can read the greeting from the server!

Regards
-- 
Milos Negovanovic
milos.negovanovic at googlemail.com


More information about the netty-users mailing list