From 35b6fddbcc5acbaed7813b89490c42c51d99c6e5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 3 Oct 2019 10:11:37 +0900 Subject: [PATCH] Compile with the latest ngtcp2 --- src/h2load_quic.cc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/h2load_quic.cc b/src/h2load_quic.cc index 445a005e..52f17f21 100644 --- a/src/h2load_quic.cc +++ b/src/h2load_quic.cc @@ -383,12 +383,13 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen, settings.log_printf = debug_log_printf; } settings.initial_ts = timestamp(worker->loop); - settings.max_stream_data_bidi_local = (1 << config->window_bits) - 1; - settings.max_stream_data_uni = (1 << config->window_bits) - 1; - settings.max_data = (1 << config->connection_window_bits) - 1; - settings.max_streams_bidi = 0; - settings.max_streams_uni = 100; - settings.idle_timeout = 30 * NGTCP2_SECONDS; + auto ¶ms = settings.transport_params; + params.initial_max_stream_data_bidi_local = (1 << config->window_bits) - 1; + params.initial_max_stream_data_uni = (1 << config->window_bits) - 1; + params.initial_max_data = (1 << config->connection_window_bits) - 1; + params.initial_max_streams_bidi = 0; + params.initial_max_streams_uni = 100; + params.idle_timeout = 30 * NGTCP2_SECONDS; auto path = ngtcp2_path{ {local_addrlen, @@ -403,9 +404,6 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen, return -1; } - ngtcp2_transport_params params; - ngtcp2_conn_get_local_transport_params(quic.conn, ¶ms); - std::array buf; auto nwrite = ngtcp2_encode_transport_params(