summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2022-02-24 19:06:43 +0900
committerDaniel Stenberg <daniel@haxx.se>2022-02-24 16:56:33 +0100
commit6e9373b5f4c9d945ec323a7357358ca51d4dfbf7 (patch)
treeb35325856eedb35c0ec14a5357d71a9241d19926
parent8a1fa3b364b9db52cf3e8d843ac1e749890985e6 (diff)
downloadcurl-6e9373b5f4c9d945ec323a7357358ca51d4dfbf7.tar.gz
ngtcp2: Reset dynbuf when it is fully drained
Reported-by: vl409 on github Fixes #7351 Closes #8504
-rw-r--r--docs/KNOWN_BUGS5
-rw-r--r--lib/vquic/ngtcp2.c2
2 files changed, 2 insertions, 5 deletions
diff --git a/docs/KNOWN_BUGS b/docs/KNOWN_BUGS
index 39a2995e6..3ed5d5a13 100644
--- a/docs/KNOWN_BUGS
+++ b/docs/KNOWN_BUGS
@@ -159,7 +159,6 @@ problems may have been fixed or changed somewhat since this was written.
18. HTTP/3
18.1 If the HTTP/3 server closes connection during upload curl hangs
18.2 Uploading HTTP/3 files gets interrupted at certain file sizes
- 18.4 Downloading with HTTP/3 produces broken files
18.6 HTTP/3 multipart POST with quiche fails
18.8 HTTP/3 does not support client certs
18.9 connection migration does not work
@@ -1126,10 +1125,6 @@ problems may have been fixed or changed somewhat since this was written.
See https://github.com/curl/curl/issues/6510
-18.4 Downloading with HTTP/3 produces broken files
-
- See https://github.com/curl/curl/issues/7351
-
18.6 HTTP/3 multipart POST with quiche fails
https://github.com/curl/curl/issues/7125
diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c
index 8c7fb81e3..aac092b8d 100644
--- a/lib/vquic/ngtcp2.c
+++ b/lib/vquic/ngtcp2.c
@@ -1220,6 +1220,8 @@ static size_t drain_overflow_buffer(struct HTTP *stream)
if(ncopy != overlen)
/* make the buffer only keep the tail */
(void)Curl_dyn_tail(&stream->overflow, overlen - ncopy);
+ else
+ Curl_dyn_reset(&stream->overflow);
}
return ncopy;
}