Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2025-01-11 15:41:14 +01:00
Another experiment for memory leaks: Create a brand-new buffer for passthrough uncompressed content
Dieser Commit ist enthalten in:
Ursprung
c14ceb315d
Commit
92571a65db
@ -29,7 +29,8 @@ 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.retainedSlice());
|
||||
out.add(in.copy());
|
||||
in.skipBytes(in.readableBytes());
|
||||
return;
|
||||
}
|
||||
|
||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren