webdriver: increase http default / max limit

The http max default was 4K with a 16KB hard limit. The default limit is now 1MB
with an initial default of 4K. This is to accommodate larger WebDriver payloads.
This commit is contained in:
Karl Seguin committed 2026-09-21 17:52:41 +08:00
1 parent b1ffc164a9
commit ee4d54928d
5 files changed
+167 -45

No files matched your search

+2 -3
View File
@@ -405,8 +405,7 @@ const Commands = cli.Builder(.{
.{ .name = "cdp_max_connections", .type = u16, .default = 16 },
.{ .name = "cdp_max_pending_connections", .type = u16, .default = 128 },
.{ .name = "cdp_max_message_size", .type = u32, .default = 1024 * 1024 },
// Don't widen this without growing the reader buffer in the HTTP path.
.{ .name = "cdp_max_http_message_size", .type = u14, .default = 4096 },
.{ .name = "cdp_max_http_message_size", .type = u32, .default = 1024 * 1024 },
.{ .name = "http_session_timeout", .type = u32, .default = 60 },
.{ .name = "disable_metrics", .type = bool },
},
@@ -919,7 +918,7 @@ pub fn dumpMetricsOnExit(self: *const Config) bool {
};
}
pub fn cdpMaxHTTPMessageSize(self: *const Config) u14 {
pub fn cdpMaxHTTPMessageSize(self: *const Config) u32 {
return switch (self.mode) {
.serve => |opts| opts.cdp_max_http_message_size,
else => unreachable,