1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-01 01:41:50 -05:00

http2_recv: trigger another read when the last data is returned

... so that end-of-stream is detected properly.

Reported-by: Tom van der Woerdt
Fixes #4043
Closes #4160
This commit is contained in:
Daniel Stenberg 2019-07-29 11:15:33 +02:00
parent a2ab576768
commit fc6045f5d1
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1755,6 +1755,9 @@ static ssize_t http2_recv(struct connectdata *conn, int sockindex,
else if(!stream->closed) {
drained_transfer(data, httpc);
}
else
/* this stream is closed, trigger a another read ASAP to detect that */
Curl_expire(data, 0, EXPIRE_RUN_NOW);
return retlen;
}