This commit is contained in:
Clebert Suconic 2021-01-11 11:37:30 -05:00
commit 5dd147a023
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ public class AMQPStandardMessage extends AMQPMessage {
this.modified = false;
this.messageDataScanned = MessageDataScanningStatus.NOT_SCANNED.code;
int estimated = Math.max(1500, data != null ? data.capacity() + 1000 : 0);
ByteBuf buffer = PooledByteBufAllocator.DEFAULT.heapBuffer(estimated);
ByteBuf buffer = PooledByteBufAllocator.DEFAULT.directBuffer(estimated);
EncoderImpl encoder = TLSEncode.getEncoder();
try {