From 191c31f2a6684727c5cc0446a2f87c81bf6178eb Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Sat, 9 Nov 2024 14:34:27 +1300 Subject: [PATCH] Add better documentation for `maximum_concurrent_streams`. --- lib/protocol/http2/connection.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/protocol/http2/connection.rb b/lib/protocol/http2/connection.rb index e42e044..073b221 100644 --- a/lib/protocol/http2/connection.rb +++ b/lib/protocol/http2/connection.rb @@ -62,7 +62,9 @@ def maximum_frame_size @remote_settings.maximum_frame_size end - # The maximum number of concurrent streams that this connection can initiate: + # The maximum number of concurrent streams that this connection can initiate. This is a setting that can be changed by the remote peer. + # + # It is not the same as the number of streams that can be accepted by the connection. The number of streams that can be accepted is determined by the local settings, and the number of streams that can be initiated is determined by the remote settings. def maximum_concurrent_streams @remote_settings.maximum_concurrent_streams end