diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2018-04-19 20:03:30 +0200 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2018-04-20 22:19:23 +0200 | 
| commit | d122df5972fc01e39ae28e6bca705237d7e3318a (patch) | |
| tree | d9e4fb9758169cf53c59789635dcd5640657b4bb /lib/multi.c | |
| parent | 7645c6bd5ea6c337414a264b37f50995b0f9e7d2 (diff) | |
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
Diffstat (limited to 'lib/multi.c')
| -rw-r--r-- | lib/multi.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/lib/multi.c b/lib/multi.c index 822ac3b1e..5f32dd2a1 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -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;    } | 
