From e2edcc50f4c26e6f848d8dfddda8d88561964ee2 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 17 Aug 2021 22:40:41 +0900 Subject: [PATCH] nghttpx: Fix veccnt assertion --- src/shrpx_http3_upstream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_http3_upstream.cc b/src/shrpx_http3_upstream.cc index f312e231..fa78d180 100644 --- a/src/shrpx_http3_upstream.cc +++ b/src/shrpx_http3_upstream.cc @@ -907,7 +907,7 @@ nghttp3_ssize downstream_read_data_callback(nghttp3_conn *conn, veccnt = body->riovec_mark(reinterpret_cast(vec), veccnt); - assert(veccnt); + assert((*pflags & NGHTTP3_DATA_FLAG_EOF) || veccnt); downstream->response_sent_body_length += nghttp3_vec_len(vec, veccnt);