mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -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:
parent
a2ab576768
commit
fc6045f5d1
@ -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…
x
Reference in New Issue
Block a user