Problem in LengthFieldBasedFrameDecoder

Balaaji Dayalarajan balaajid at gmail.com
Mon Apr 5 17:22:49 EDT 2010


Hi,
    I am running a server written in netty API with the following
configuration 

new LengthFieldBasedFrameDecoder(14,0,2,0,2)

and send the following message "12HELLO, WORLD" continiously in a loop to
the server.

I expect the server to decode the message and output this value "HELLO,
WORLD" instead
the handler complains
org.jboss.netty.handler.codec.frame.TooLongFrameException: Adjusted frame
length exceeds 14: 12596

the documentation for LengthFieldBasedFrameDecoder does'nt speak up about
"maxFrameLength" value. why is the code complaining about the specific value
"12596"?

if any body has used LengthFieldBasedFrameDecoder.Kindly pass on the
configuration and sample message used.

any suggestions/views/comments to fix this is greatly appreciated.

Thanks in advance
Balaaji.D

-- 
View this message in context: http://n2.nabble.com/Problem-in-LengthFieldBasedFrameDecoder-tp4855542p4855542.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list