mirror of
https://github.com/curl/curl.git
synced 2026-07-26 00:57:15 +03:00
http2: handle GOAWAY properly
When receiving REFUSED_STREAM, mark the connection for close and retry streams accordingly on another/fresh connection. Reported-by: Terry Wu Fixes #2416 Fixes #1618 Closes #2510
This commit is contained in:
parent
7645c6bd5e
commit
d122df5972
4 changed files with 31 additions and 9 deletions
|
|
@ -546,7 +546,9 @@ static CURLcode multi_done(struct connectdata **connp,
|
|||
if(conn->send_pipe.size || conn->recv_pipe.size) {
|
||||
/* Stop if pipeline is not empty . */
|
||||
data->easy_conn = NULL;
|
||||
DEBUGF(infof(data, "Connection still in use, no more multi_done now!\n"));
|
||||
DEBUGF(infof(data, "Connection still in use %d/%d, "
|
||||
"no more multi_done now!\n",
|
||||
conn->send_pipe.size, conn->recv_pipe.size));
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue