Skip to content

Commit 8a22c0c

Browse files
committed
Working
1 parent 130b48c commit 8a22c0c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/main/java/io/fusionauth/http/server/Configurable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ default T withBaseDir(Path baseDir) {
4747
}
4848

4949
/**
50-
* Sets the buffer size for the chunked input stream. Defaults to 4k.
50+
* Sets the buffer size for the chunked input stream. Defaults to 2k.
5151
*
5252
* @param chunkedBufferSize the buffer size used to read a request body that was encoded using 'chunked' transfer-encoding.
5353
* @return This.

src/main/java/io/fusionauth/http/server/HTTPServerConfiguration.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class HTTPServerConfiguration implements Configurable<HTTPServerConfigura
3434

3535
private Path baseDir = Path.of("");
3636

37-
private int chunkedBufferSize = 4 * 1024; // 4k bytes
37+
private int chunkedBufferSize = 2 * 1024; // 2k bytes
3838

3939
private boolean compressByDefault = true;
4040

@@ -91,6 +91,9 @@ public Path getBaseDir() {
9191
return baseDir;
9292
}
9393

94+
/**
95+
* @return the length of the buffer used to parse a chunked request.
96+
*/
9497
public int getChunkedBufferSize() {
9598
return chunkedBufferSize;
9699
}

0 commit comments

Comments
 (0)