Skip to content

Commit 3b38f11

Browse files
fix: increase MAX_REQUEST_SIZE to 32MB for upload test
The upload test sends 20MB bodies (Content-Length: 20971520) but MAX_REQUEST_SIZE was 4MB. The overflow buffer hit RequestTooLarge and closed connections → 0 req/s with 660K+ read errors. Bumped to 32MB to handle the benchmark's upload payload.
1 parent 41af6a8 commit 3b38f11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frameworks/blitz/src/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const METHOD_NOT_ALLOWED_RESP = "HTTP/1.1 405 Method Not Allowed\r\n" ++ SERVER_
1515
const PORT: u16 = 8080;
1616
const MAX_EVENTS: usize = 512;
1717
const BUF_SIZE: usize = 65536;
18-
const MAX_REQUEST_SIZE: usize = 4 * 1024 * 1024; // 4MB max request
18+
const MAX_REQUEST_SIZE: usize = 32 * 1024 * 1024; // 32MB max request (upload bodies can be ~20MB)
1919
const MAX_CONNS: usize = 65536;
2020

2121
// Linux socket constants

0 commit comments

Comments
 (0)