From 98e4d60501a6488eec6f557528c11830d164cea1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 20 Dec 2018 10:36:52 +0100 Subject: http2: clear pause stream id if it gets closed Reported-by: Florian Pritz Fixes #3392 --- lib/http2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/http2.c b/lib/http2.c index a61d8c240..ac4cec2e0 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -854,6 +854,10 @@ static int on_stream_close(nghttp2_session *session, int32_t stream_id, stream_id); DEBUGASSERT(0); } + if(stream_id == httpc->pause_stream_id) { + H2BUGF(infof(data_s, "Stopped the pause stream!\n")); + httpc->pause_stream_id = 0; + } H2BUGF(infof(data_s, "Removed stream %u hash!\n", stream_id)); stream->stream_id = 0; /* cleared */ } -- cgit v1.2.1