]> granicus.if.org Git - curl/commitdiff
ngtcp2: add missing nghttp3_conn_add_write_offset call
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Thu, 15 Aug 2019 05:53:24 +0000 (14:53 +0900)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 15 Aug 2019 06:02:52 +0000 (08:02 +0200)
Closes #4225

lib/vquic/ngtcp2.c

index 38bea45202ca71b6af5fd191e4f91c4eb53f0362..04094579106f4c971356ec04f1b53c5eb38dd8e9 100644 (file)
@@ -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) {