ngtcp2: reset the oustanding send buffer again when drained

Closes #7538
This commit is contained in:
megatronking 2021-08-06 15:47:07 +08:00 committed by Daniel Stenberg
parent dd37639df7
commit 09cea3fbef
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;
}