From 7d23190bb44417986de25e275fbf6e7352dfc8ec Mon Sep 17 00:00:00 2001 From: Masaori Koshiba Date: Tue, 16 Feb 2016 10:48:19 +0900 Subject: [PATCH] TS-4209: Limit concurrent streams correctly --- proxy/http2/Http2ConnectionState.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/http2/Http2ConnectionState.cc b/proxy/http2/Http2ConnectionState.cc index 75744dccede..f51f64afe65 100644 --- a/proxy/http2/Http2ConnectionState.cc +++ b/proxy/http2/Http2ConnectionState.cc @@ -824,7 +824,7 @@ Http2ConnectionState::create_stream(Http2StreamId new_id) // Endpoints MUST NOT exceed the limit set by their peer. An endpoint // that receives a HEADERS frame that causes their advertised concurrent // stream limit to be exceeded MUST treat this as a stream error. - if (client_streams_count >= client_settings.get(HTTP2_SETTINGS_MAX_CONCURRENT_STREAMS)) { + if (client_streams_count >= server_settings.get(HTTP2_SETTINGS_MAX_CONCURRENT_STREAMS)) { return NULL; }