Unverified Commit 7645c6bd authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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
parent 1514c446
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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"));