diff options
author | megatronking <jinguoyang@gostudy.ai> | 2021-08-06 15:47:07 +0800 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-08-10 23:07:42 +0200 |
commit | 09cea3fbef654fc72fd4a65ee17ac534d88b22bd (patch) | |
tree | 83813b297826c91d9fe863b836a6ac62d8dc0a2a /lib | |
parent | dd37639df712aa9915273b99dda11d3efb33fce0 (diff) | |
download | curl-09cea3fbef654fc72fd4a65ee17ac534d88b22bd.tar.gz |
ngtcp2: reset the oustanding send buffer again when drained
Closes #7538
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vquic/ngtcp2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index 107fcb8c1..3374e9eeb 100644 --- a/lib/vquic/ngtcp2.c +++ b/lib/vquic/ngtcp2.c @@ -1676,6 +1676,12 @@ static ssize_t ngh3_stream_send(struct Curl_easy *data, return -1; } + /* Reset post upload buffer after resumed. */ + if(stream->upload_mem) { + stream->upload_mem = NULL; + stream->upload_len = 0; + } + *curlcode = CURLE_OK; return sent; } |