mirror of
https://github.com/curl/curl.git
synced 2026-05-30 06:47:28 +03:00
http2_connisdead: handle trailing GOAWAY better
When checking the connection the input processing returns error immediately, we now consider that a dead connnection. Bug: https://curl.se/mail/lib-2021-06/0001.html Closes #7192
This commit is contained in:
parent
4bd20889fc
commit
a0709f9951
1 changed files with 3 additions and 1 deletions
|
|
@ -200,7 +200,9 @@ static bool http2_connisdead(struct Curl_easy *data, struct connectdata *conn)
|
|||
(int)nread);
|
||||
httpc->nread_inbuf = 0;
|
||||
httpc->inbuflen = nread;
|
||||
(void)h2_process_pending_input(data, httpc, &result);
|
||||
if(h2_process_pending_input(data, httpc, &result) < 0)
|
||||
/* immediate error, considered dead */
|
||||
dead = TRUE;
|
||||
}
|
||||
else
|
||||
/* the read failed so let's say this is dead anyway */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue