hyper: fix handling of hyper_task's when reusing the same address

Fixes #9840
Closes #9860
This commit is contained in:
Stefan Eissing 2022-11-07 09:47:10 +01:00 committed by Daniel Stenberg
parent 3cbdf4a148
commit 9ad386f85b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -415,8 +415,10 @@ CURLcode Curl_hyper_stream(struct Curl_easy *data,
break;
}
else if(h->endtask == task) {
/* end of transfer */
/* end of transfer, forget the task handled, we might get a
* new one with the same address in the future. */
*done = TRUE;
h->endtask = NULL;
infof(data, "hyperstream is done");
if(!k->bodywrites) {
/* hyper doesn't always call the body write callback */