Skip to content

Commit 0ff4987

Browse files
committed
Change MultiBuffer.DEFAULT_CHUNK_SIZE value
1 parent c6d47ef commit 0ff4987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/maxmind/db/MultiBuffer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
class MultiBuffer implements Buffer {
2222

2323
/** Default maximum size per underlying chunk. */
24-
static final int DEFAULT_CHUNK_SIZE = Integer.MAX_VALUE / 2;
24+
static final int DEFAULT_CHUNK_SIZE = Integer.MAX_VALUE - 8;
2525

2626
final ByteBuffer[] buffers;
2727
private final int chunkSize;

0 commit comments

Comments
 (0)