mirror of
https://github.com/curl/curl.git
synced 2026-04-23 20:52:12 +03: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:
parent
a2ab576768
commit
fc6045f5d1
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue