Skip to content

Commit 4a10a38

Browse files
authored
servlet: remove 4096 min buffer size
Similar to 7153ff8
1 parent b1bc0a9 commit 4a10a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servlet/src/main/java/io/grpc/servlet/ServletServerStream.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private static final class ByteArrayWritableBuffer implements WritableBuffer {
168168
private int index;
169169

170170
ByteArrayWritableBuffer(int capacityHint) {
171-
this.bytes = new byte[min(1024 * 1024, max(4096, capacityHint))];
171+
this.bytes = new byte[min(1024 * 1024, capacityHint)];
172172
this.capacity = bytes.length;
173173
}
174174

0 commit comments

Comments
 (0)