diff options
author | Shikha Sharma <shikha.sharma@broadforward.com> | 2021-06-04 13:28:16 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-06-05 23:45:31 +0200 |
commit | a0709f9951324e5278b4cc7661e8be2f06bdf890 (patch) | |
tree | 00ad870461de310727a13fc9ce2869e41f4de14d /lib/http2.c | |
parent | 4bd20889fc3803b42647eaa4902e5257c508b363 (diff) | |
download | curl-a0709f9951324e5278b4cc7661e8be2f06bdf890.tar.gz |
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
Diffstat (limited to 'lib/http2.c')
-rw-r--r-- | lib/http2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c index f478bfe1c..2424eaf7f 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -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 */ |