Throw Exception when generating a 30,000+ byte packet

This commit is contained in:
AlgorithmX2
2014-02-16 15:54:43 -06:00
parent 02f2eb00bd
commit 1d21f2f925
2 changed files with 5 additions and 2 deletions
@@ -46,7 +46,7 @@ public class PacketMEInventoryUpdate extends AppEngPacket
compressFrame = null;
list = new LinkedList();
int originalBytes = stream.readableBytes();
// int originalBytes = stream.readableBytes();
GZIPInputStream gzReader = new GZIPInputStream( new InputStream() {
@@ -71,7 +71,7 @@ public class PacketMEInventoryUpdate extends AppEngPacket
}
gzReader.close();
int uncompesssedBytes = uncompesssed.readableBytes();
// int uncompesssedBytes = uncompesssed.readableBytes();
// AELog.info( "Recv: " + originalBytes + " -> " + uncompesssedBytes );
while (uncompesssed.readableBytes() > 0)