summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2019-08-15 14:53:24 +0900
committerDaniel Stenberg <daniel@haxx.se>2019-08-15 08:02:52 +0200
commit408c758bb8fe61498fb648f983ce58eb4a4567e4 (patch)
tree1c0c706389b3673b5a41b5cfed7d7ccf8f5a0cd6
parentc47ef9115e9f527b2b3758153283af48c3c68b92 (diff)
downloadcurl-408c758bb8fe61498fb648f983ce58eb4a4567e4.tar.gz
ngtcp2: add missing nghttp3_conn_add_write_offset call
Closes #4225
-rw-r--r--lib/vquic/ngtcp2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c
index 38bea4520..040945791 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) {