From 51d4e419cf777cbd8461bf2e43d86a8cd8ed52bc Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 29 Sep 2020 00:58:47 +0900 Subject: [PATCH] Cap --window-bits to 26 for QUIC --- src/h2load.cc | 2 +- src/h2load_quic.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/h2load.cc b/src/h2load.cc index 665bc4d1..0cbcaebb 100644 --- a/src/h2load.cc +++ b/src/h2load.cc @@ -2033,7 +2033,7 @@ Options: Default: 1 -w, --window-bits= Sets the stream level initial window size to (2**)-1. - For QUIC, is capped to 23 (roughly 8MiB). + For QUIC, is capped to 26 (roughly 64MiB). Default: )" << config.window_bits << R"( -W, --connection-window-bits= diff --git a/src/h2load_quic.cc b/src/h2load_quic.cc index b08ffd49..720b7038 100644 --- a/src/h2load_quic.cc +++ b/src/h2load_quic.cc @@ -367,7 +367,7 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen, settings.initial_ts = timestamp(worker->loop); auto ¶ms = settings.transport_params; auto max_stream_data = - std::min((1 << 23) - 1, (1 << config->window_bits) - 1); + std::min((1 << 26) - 1, (1 << config->window_bits) - 1); params.initial_max_stream_data_bidi_local = max_stream_data; params.initial_max_stream_data_uni = max_stream_data; params.initial_max_data = (1 << config->connection_window_bits) - 1;