aboutsummaryrefslogtreecommitdiff
path: root/lib/http2.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-04-19 20:01:52 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-04-20 22:18:19 +0200
commit7645c6bd5ea6c337414a264b37f50995b0f9e7d2 (patch)
treecbc454f24f8a373cb49eeee94763c1d637fb5db8 /lib/http2.c
parent1514c44655e12e93e453bbc9e1934cf6d30d3817 (diff)
http2: clear the "drain counter" when a stream is closed
This fixes the notorious "httpc->drain_total >= data->state.drain" assert. Reported-by: Anders Bakken Fixes #1680 Closes #2509
Diffstat (limited to 'lib/http2.c')
-rw-r--r--lib/http2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/http2.c b/lib/http2.c
index 077c03e6f..6ac69b9b5 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"));