Reduce proxy timeout to 100ms
Turns out there are many cases in corpora that would wait proxy
to timeout. Having a large value would explode the total runtime
of the fuzzer.
@@ -355,12 +355,14 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
h2o_config_init(&config);
config.http2.idle_timeout = 10 * 1000;
config.http1.req_timeout = 10 * 1000;
- config.proxy.io_timeout = 10 * 1000;
+ /* Assuming the origin is in the same node and is not super busy, we expect 100ms should be enough for proxy timeout.
+ * Having a large value would explode the total runtime of the fuzzer. */
+ config.proxy.io_timeout = 100;
config.proxy.connect_timeout = config.proxy.io_timeout;
config.proxy.first_byte_timeout = config.proxy.io_timeout;
h2o_proxy_config_vars_t proxy_config = {};
- proxy_config.io_timeout = 10 * 1000;
+ proxy_config.io_timeout = config.proxy.io_timeout;
proxy_config.connect_timeout = proxy_config.io_timeout;
proxy_config.first_byte_timeout = proxy_config.io_timeout;
hostconf = h2o_config_register_host(&config, h2o_iovec_init(H2O_STRLIT(unix_listener)), 65535);
