From: Tatsuhiro Tsujikawa Date: Thu, 15 Aug 2019 05:53:24 +0000 (+0900) Subject: ngtcp2: add missing nghttp3_conn_add_write_offset call X-Git-Tag: curl-7_66_0~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=408c758bb8fe61498fb648f983ce58eb4a4567e4;p=thirdparty%2Fcurl.git ngtcp2: add missing nghttp3_conn_add_write_offset call Closes #4225 --- diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index 38bea45202..0409457910 100644 --- a/lib/vquic/ngtcp2.c +++ b/lib/vquic/ngtcp2.c @@ -1946,6 +1946,15 @@ static CURLcode ng_flush_egress(struct connectdata *conn, int sockfd, return CURLE_SEND_ERROR; } } + else if(ndatalen > 0) { + rv = nghttp3_conn_add_write_offset(qs->h3conn, stream_id, ndatalen); + if(rv != 0) { + failf(conn->data, + "nghttp3_conn_add_write_offset returned error: %s\n", + nghttp3_strerror(rv)); + return CURLE_SEND_ERROR; + } + } } } if(outlen < 0) {