From 8aedc50048fa114f964903d61b8b30aeece83463 Mon Sep 17 00:00:00 2001 From: Lachlan Roberts Date: Wed, 2 Dec 2020 00:07:38 +1100 Subject: [PATCH] fix missing usage of the new _direct field in ByteBufferAccumulator Signed-off-by: Lachlan Roberts --- .../main/java/org/eclipse/jetty/io/ByteBufferAccumulator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/ByteBufferAccumulator.java b/jetty-io/src/main/java/org/eclipse/jetty/io/ByteBufferAccumulator.java index 462a018325e..66bba546aec 100644 --- a/jetty-io/src/main/java/org/eclipse/jetty/io/ByteBufferAccumulator.java +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/ByteBufferAccumulator.java @@ -91,7 +91,7 @@ public class ByteBufferAccumulator implements AutoCloseable ByteBuffer buffer = _buffers.isEmpty() ? BufferUtil.EMPTY_BUFFER : _buffers.get(_buffers.size() - 1); if (BufferUtil.space(buffer) < minSize) { - buffer = _bufferPool.acquire(minAllocationSize, false); + buffer = _bufferPool.acquire(minAllocationSize, _direct); _buffers.add(buffer); }