Skip to content

Commit

Permalink
Clarify MAX_STREAMS
Browse files Browse the repository at this point in the history
Fixes #1941
  • Loading branch information
ianswett committed Nov 15, 2018
1 parent 316eb16 commit 9335f5a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions draft-ietf-quic-transport.md
Expand Up @@ -264,7 +264,8 @@ ordering between bytes on different streams.

QUIC allows for an arbitrary number of streams to operate concurrently and for
an arbitrary amount of data to be sent on any stream, subject to flow control
constraints (see {{flow-control}}).
constraints (see {{flow-control}}) and stream limits
(see {{stream-concurrency}}).


## Stream Types and Identifiers {#stream-id}
Expand Down Expand Up @@ -682,7 +683,7 @@ send on a stream at any time, as described in {{data-flow-control}} and
{{fc-credit}}

Similarly, to limit concurrency within a connection, a QUIC endpoint controls
the maximum number of streams that its peer can initiate at any time, as
the maximum cumulative number of streams that its peer can initiate, as
described in {{controlling-concurrency}}.

Data sent in CRYPTO frames is not flow controlled in the same way as stream
Expand Down Expand Up @@ -4542,10 +4543,10 @@ a change in the initial limits (see {{zerortt-parameters}}).

## MAX_STREAMS Frames {#frame-max-streams}

The MAX_STREAMS frames (type=0x12 and 0x13) inform the peer of the number of
streams it is permitted to open. A MAX_STREAMS frame with a type of 0x12
applies to bidirectional streams, and a MAX_STREAMS frame with a type of 0x13
applies to unidirectional streams.
The MAX_STREAMS frames (type=0x12 and 0x13) inform the peer of the cumulative
number of streams of a given type it is permitted to open. A MAX_STREAMS frame
with a type of 0x12 applies to bidirectional streams, and a MAX_STREAMS frame
with a type of 0x13 applies to unidirectional streams.

The MAX_STREAMS frames are as follows:

Expand All @@ -4561,8 +4562,8 @@ MAX_STREAMS frames contain the following fields:

Maximum Streams:

: A count of the total number of streams of the corresponding type that can be
opened.
: A count of the cumulative number of streams of the corresponding type that can be
opened over the lifetime of the connection.

Loss or reordering can cause a MAX_STREAMS frame to be received which states a
lower stream limit than an endpoint has previously received. MAX_STREAMS frames
Expand Down

0 comments on commit 9335f5a

Please sign in to comment.