Netty Consumer is not able to pick up messagefrom any port sent through simple java socket clinet
sachin2713 at gmail.com
sachin2713 at gmail.com
Wed May 25 07:43:09 EDT 2011
Hi,
I debugged the netty source code and came to know while sending message from
java client it causes problems in some decoding.
It goes to decode method of LengthFieldBasedFrameDecoder class where the
Frame length it fetched from Channel buffer exceeds the maxFrameLength,
hence returning null.
if (frameLength > maxFrameLength) {
// Enter the discard mode and discard everything received so
far.
discardingTooLongFrame = true;
tooLongFrameLength = frameLength;
bytesToDiscard = frameLength - buffer.readableBytes();
buffer.skipBytes(buffer.readableBytes());
return null;
}
As i am sending simple xml message in byte form, which decoder i should use.
Please guide me.
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Netty-Consumer-is-not-able-to-pick-up-messagefrom-any-port-sent-through-simple-java-socket-clinet-tp6398719p6402365.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list