From e4a8c4813c3108133b7af8cbcaf05b01400aa8cc Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 26 Aug 2020 15:20:20 +0900 Subject: [PATCH] Compile with the latest ngtcp2 --- src/h2load_quic.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/h2load_quic.cc b/src/h2load_quic.cc index ae2db7c0..582e5c79 100644 --- a/src/h2load_quic.cc +++ b/src/h2load_quic.cc @@ -512,6 +512,7 @@ int Client::read_quic() { socklen_t addrlen = sizeof(su); int rv; size_t pktcnt = 0; + ngtcp2_pkt_info pi{}; for (;;) { auto nread = @@ -527,7 +528,7 @@ int Client::read_quic() { {addrlen, &su.sa}, }; - rv = ngtcp2_conn_read_pkt(quic.conn, &path, buf.data(), nread, + rv = ngtcp2_conn_read_pkt(quic.conn, &path, &pi, buf.data(), nread, timestamp(worker->loop)); if (rv != 0) { std::cerr << "ngtcp2_conn_read_pkt: " << ngtcp2_strerror(rv) << std::endl; @@ -579,8 +580,8 @@ int Client::write_quic() { } auto nwrite = ngtcp2_conn_writev_stream( - quic.conn, &ps.path, buf.data(), quic.max_pktlen, &ndatalen, flags, - stream_id, reinterpret_cast(v), vcnt, + quic.conn, &ps.path, nullptr, buf.data(), quic.max_pktlen, &ndatalen, + flags, stream_id, reinterpret_cast(v), vcnt, timestamp(worker->loop)); if (nwrite < 0) { switch (nwrite) {