Commit 53a0b710 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Always return true. Always pass any incoming content to the parser. JM-1087

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches@8601 b35dd754-fafc-0310-a699-88a17e54d16e
parent 838dc920
...@@ -25,12 +25,8 @@ public class XMPPDecoder extends CumulativeProtocolDecoder { ...@@ -25,12 +25,8 @@ public class XMPPDecoder extends CumulativeProtocolDecoder {
protected boolean doDecode(IoSession session, ByteBuffer in, ProtocolDecoderOutput out) protected boolean doDecode(IoSession session, ByteBuffer in, ProtocolDecoderOutput out)
throws Exception { throws Exception {
if (in.remaining() < 4) {
return false;
}
// Get the XML light parser from the IoSession // Get the XML light parser from the IoSession
XMLLightweightParser parser = XMLLightweightParser parser = (XMLLightweightParser) session.getAttribute(ConnectionHandler.XML_PARSER);
(XMLLightweightParser) session.getAttribute(ConnectionHandler.XML_PARSER);
// Parse as many stanzas as possible from the received data // Parse as many stanzas as possible from the received data
parser.read(in); parser.read(in);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment