adjust minimum space in ByteBufferAccumulator before buffer allocation

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-11-06 18:52:11 +11:00
parent 3c44df0724
commit 8dc0d9932d
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ import org.eclipse.jetty.util.BufferUtil;
public class ByteBufferAccumulator implements AutoCloseable
{
private static final int MIN_SPACE = 3;
private static final int MIN_SPACE = 8;
private static final int DEFAULT_BUFFER_SIZE = 1024;
private final List<ByteBuffer> _buffers = new ArrayList<>();