From 82cd110dbe4a6f61f514582607e17411ff196396 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 27 Aug 2021 21:13:26 +0900 Subject: [PATCH] nghttpx: Use SHRPX_MAX_UDP_PAYLOAD_SIZE --- src/shrpx_quic_connection_handler.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shrpx_quic_connection_handler.cc b/src/shrpx_quic_connection_handler.cc index c3d19ac7..0160799e 100644 --- a/src/shrpx_quic_connection_handler.cc +++ b/src/shrpx_quic_connection_handler.cc @@ -295,7 +295,7 @@ int QUICConnectionHandler::send_retry( return -1; } - std::array buf; + std::array buf; auto nwrite = ngtcp2_crypto_write_retry(buf.data(), buf.size(), version, &iscid, @@ -319,7 +319,7 @@ int QUICConnectionHandler::send_version_negotiation( sv[0] = generate_reserved_version(remote_addr, version); sv[1] = NGTCP2_PROTO_VER_V1; - std::array buf; + std::array buf; uint8_t rand_byte; util::random_bytes(&rand_byte, &rand_byte + 1, worker_->get_randgen()); @@ -364,7 +364,7 @@ int QUICConnectionHandler::send_stateless_reset(const UpstreamAddr *faddr, return -1; } - std::array buf; + std::array buf; auto nwrite = ngtcp2_pkt_write_stateless_reset(buf.data(), buf.size(), token.data(),