summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-04-19 20:01:52 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-04-19 20:06:55 +0200
commitd986404e712612ba97ad744ee541f2bfc3a2c311 (patch)
treef7ce070a23e5f286c04cb39c367f644362a9301c
parent5c8521851f6f9c8b76e369ce87dd57e5ee6d38e7 (diff)
downloadcurl-bagder/http2-drain-unsync.tar.gz
http2: clear the "drain counter" when a stream is closedbagder/http2-drain-unsync
This fixes the notorious "httpc->drain_total >= data->state.drain" assert. Reported-by: Anders Bakken Fixes #1680
-rw-r--r--lib/http2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/http2.c b/lib/http2.c
index e60ae247b..1f5320b0a 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -162,6 +162,7 @@ static CURLcode http2_disconnect(struct connectdata *conn,
nghttp2_session_del(c->h2);
Curl_safefree(c->inbuf);
http2_stream_free(conn->data->req.protop);
+ conn->data->state.drain = 0;
H2BUGF(infof(conn->data, "HTTP/2 DISCONNECT done\n"));