From 35d8ef33efe62e296f8ba09d21edfdc6b404a405 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 31 Jan 2021 10:56:45 +0900 Subject: [PATCH] Compile with the latest ngtcp2 --- src/h2load_quic.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/h2load_quic.cc b/src/h2load_quic.cc index c2d3f531..b52b8abc 100644 --- a/src/h2load_quic.cc +++ b/src/h2load_quic.cc @@ -352,7 +352,9 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen, settings.log_printf = debug_log_printf; } settings.initial_ts = timestamp(worker->loop); - auto ¶ms = settings.transport_params; + + ngtcp2_transport_params params; + ngtcp2_transport_params_default(¶ms); auto max_stream_data = std::min((1 << 26) - 1, (1 << config->window_bits) - 1); params.initial_max_stream_data_bidi_local = max_stream_data; @@ -370,7 +372,7 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen, rv = ngtcp2_conn_client_new(&quic.conn, &dcid, &scid, &path, NGTCP2_PROTO_VER_MIN, &callbacks, &settings, - nullptr, this); + ¶ms, nullptr, this); if (rv != 0) { return -1; }