Skip to content

Commit 191c31f

Browse files
committed
Add better documentation for maximum_concurrent_streams.
1 parent 27191f0 commit 191c31f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/protocol/http2/connection.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ def maximum_frame_size
6262
@remote_settings.maximum_frame_size
6363
end
6464

65-
# The maximum number of concurrent streams that this connection can initiate:
65+
# The maximum number of concurrent streams that this connection can initiate. This is a setting that can be changed by the remote peer.
66+
#
67+
# 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.
6668
def maximum_concurrent_streams
6769
@remote_settings.maximum_concurrent_streams
6870
end

0 commit comments

Comments
 (0)