]> granicus.if.org Git - curl/commitdiff
http2: clear pause stream id if it gets closed
authorDaniel Stenberg <daniel@haxx.se>
Thu, 20 Dec 2018 09:36:52 +0000 (10:36 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 20 Dec 2018 16:10:12 +0000 (17:10 +0100)
Reported-by: Florian Pritz
Fixes #3392
Closes #3399

lib/http2.c

index a61d8c240328b1b6bd2b961d0876fbf6ad88aca7..ac4cec2e062a661835288ecec6a574a294cdba20 100644 (file)
@@ -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 */
   }