This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch 8.1.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 7a4b3fcfb07c816894de3ab32c39040fd0ad6d7c Author: Masaori Koshiba <[email protected]> AuthorDate: Wed Aug 7 17:01:06 2019 +0900 Allocate DependencyTree only if HTTP/2 stream priority is enabled (cherry picked from commit b2f62640c20ddd4acc7ccdb1876b4f58a9044df8) --- proxy/http2/Http2ConnectionState.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proxy/http2/Http2ConnectionState.h b/proxy/http2/Http2ConnectionState.h index e6f4ff9..489ea9a 100644 --- a/proxy/http2/Http2ConnectionState.h +++ b/proxy/http2/Http2ConnectionState.h @@ -132,7 +132,9 @@ public: { local_hpack_handle = new HpackHandle(HTTP2_HEADER_TABLE_SIZE); remote_hpack_handle = new HpackHandle(HTTP2_HEADER_TABLE_SIZE); - dependency_tree = new DependencyTree(Http2::max_concurrent_streams_in); + if (Http2::stream_priority_enabled) { + dependency_tree = new DependencyTree(Http2::max_concurrent_streams_in); + } } void
