From eb8138bfbd6b1fbb9cdeeb4e0e25dfe9a693cd9b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 17 Dec 2014 23:36:29 +0900 Subject: [PATCH] nghttp: Advance next stream ID only when --idle-dep is used --- src/nghttp.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/nghttp.cc b/src/nghttp.cc index 2787f539..6ea80628 100644 --- a/src/nghttp.cc +++ b/src/nghttp.cc @@ -794,10 +794,11 @@ struct HttpClient { dep_stream_id = stream_id; } - } - rv = nghttp2_session_set_next_stream_id(session, ANCHOR_ID_LOWEST + 2); - if (rv != 0) { - return -1; + + rv = nghttp2_session_set_next_stream_id(session, ANCHOR_ID_LOWEST + 2); + if (rv != 0) { + return -1; + } } assert(settings_timerev == nullptr);