mirror of
https://github.com/moparisthebest/curl
synced 2024-12-26 01:58:49 -05: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
@ -200,7 +200,9 @@ static bool http2_connisdead(struct Curl_easy *data, struct connectdata *conn)
|
|||||||
(int)nread);
|
(int)nread);
|
||||||
httpc->nread_inbuf = 0;
|
httpc->nread_inbuf = 0;
|
||||||
httpc->inbuflen = nread;
|
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
|
else
|
||||||
/* the read failed so let's say this is dead anyway */
|
/* the read failed so let's say this is dead anyway */
|
||||||
|
Loading…
Reference in New Issue
Block a user