summaryrefslogtreecommitdiff
path: root/lib/http2.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-12-20 10:36:52 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-12-20 17:10:12 +0100
commit6dc1780ea54129b3e6721fe9ee3f9d4f1d7abc1b (patch)
treeb41fa9b5c1ae00ce3dc39ea1fd1a142350a7d3d4 /lib/http2.c
parent982a897b4bc22fa49da2501af8242e8c8ce1792c (diff)
downloadcurl-6dc1780ea54129b3e6721fe9ee3f9d4f1d7abc1b.tar.gz
http2: clear pause stream id if it gets closed
Reported-by: Florian Pritz Fixes #3392 Closes #3399
Diffstat (limited to 'lib/http2.c')
-rw-r--r--lib/http2.c4
1 files changed, 4 insertions, 0 deletions
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 */
}