diff --git a/src/h2load_quic.cc b/src/h2load_quic.cc index 7d3281b5..a32b1d46 100644 --- a/src/h2load_quic.cc +++ b/src/h2load_quic.cc @@ -535,12 +535,12 @@ void Client::quic_close_connection() { case quic::ErrorType::Transport: nwrite = ngtcp2_conn_write_connection_close( quic.conn, &ps.path, nullptr, buf.data(), buf.size(), - quic.last_error.code, timestamp(worker->loop)); + quic.last_error.code, nullptr, 0, timestamp(worker->loop)); break; case quic::ErrorType::Application: nwrite = ngtcp2_conn_write_application_close( quic.conn, &ps.path, nullptr, buf.data(), buf.size(), - quic.last_error.code, timestamp(worker->loop)); + quic.last_error.code, nullptr, 0, timestamp(worker->loop)); break; default: assert(0); diff --git a/src/shrpx_http3_upstream.cc b/src/shrpx_http3_upstream.cc index 28749287..90fb9194 100644 --- a/src/shrpx_http3_upstream.cc +++ b/src/shrpx_http3_upstream.cc @@ -1406,7 +1406,7 @@ void Http3Upstream::on_handler_delete() { auto nwrite = ngtcp2_conn_write_connection_close( conn_, &ps.path, &pi, conn_close_.data(), conn_close_.size(), - NGTCP2_NO_ERROR, quic_timestamp()); + NGTCP2_NO_ERROR, nullptr, 0, quic_timestamp()); if (nwrite < 0) { if (nwrite != NGTCP2_ERR_INVALID_STATE) { ULOG(ERROR, this) << "ngtcp2_conn_write_connection_close: " @@ -1764,7 +1764,7 @@ int Http3Upstream::handle_error() { if (last_error_.type == quic::ErrorType::Transport) { nwrite = ngtcp2_conn_write_connection_close( conn_, &ps.path, &pi, conn_close_.data(), conn_close_.size(), - last_error_.code, ts); + last_error_.code, nullptr, 0, ts); if (nwrite < 0) { ULOG(ERROR, this) << "ngtcp2_conn_write_connection_close: " << ngtcp2_strerror(nwrite); @@ -1773,7 +1773,7 @@ int Http3Upstream::handle_error() { } else { nwrite = ngtcp2_conn_write_application_close( conn_, &ps.path, &pi, conn_close_.data(), conn_close_.size(), - last_error_.code, ts); + last_error_.code, nullptr, 0, ts); if (nwrite < 0) { ULOG(ERROR, this) << "ngtcp2_conn_write_application_close: " << ngtcp2_strerror(nwrite); diff --git a/src/shrpx_quic_connection_handler.cc b/src/shrpx_quic_connection_handler.cc index 2a04df9b..955534ba 100644 --- a/src/shrpx_quic_connection_handler.cc +++ b/src/shrpx_quic_connection_handler.cc @@ -615,7 +615,8 @@ int QUICConnectionHandler::send_connection_close( std::array buf; auto nwrite = ngtcp2_crypto_write_connection_close( - buf.data(), buf.size(), version, &ini_scid, &ini_dcid, error_code); + buf.data(), buf.size(), version, &ini_scid, &ini_dcid, error_code, + nullptr, 0); if (nwrite < 0) { LOG(ERROR) << "ngtcp2_crypto_write_connection_close failed"; return -1;