3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 05:20:14 +01:00

Revert "Another experiment for memory leaks: Create a brand-new buffer for passthrough uncompressed content"

This reverts commit 92571a65db.

It looks like c3fab89bd7 nabbed it at last.
Dieser Commit ist enthalten in:
Andrew Steinborn 2020-01-24 01:21:50 -05:00
Ursprung be867a8ca9
Commit 53c951bc52

Datei anzeigen

@ -29,8 +29,7 @@ public class MinecraftCompressDecoder extends MessageToMessageDecoder<ByteBuf> {
int claimedUncompressedSize = ProtocolUtils.readVarInt(in);
if (claimedUncompressedSize == 0) {
// Strip the now-useless uncompressed size, this message is already uncompressed.
out.add(in.copy());
in.skipBytes(in.readableBytes());
out.add(in.retainedSlice());
return;
}