1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-25 09:38:54 -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:
Shikha Sharma 2021-06-04 13:28:16 +02:00 committed by Daniel Stenberg
parent 4bd20889fc
commit a0709f9951
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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 */