diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-12-20 10:36:52 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-12-20 10:36:52 +0100 |
commit | 98e4d60501a6488eec6f557528c11830d164cea1 (patch) | |
tree | b4b872f59528c6b2b3246206525af6252feca83b /lib/http2.c | |
parent | ea2fed5d5eaf29fb7c4350654fcb4f3ca9b62ec8 (diff) | |
download | curl-bagder/h2-close-pause-stream.tar.gz |
http2: clear pause stream id if it gets closedbagder/h2-close-pause-stream
Reported-by: Florian Pritz
Fixes #3392
Diffstat (limited to 'lib/http2.c')
-rw-r--r-- | lib/http2.c | 4 |
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 */ } |