Skip to content

Commit aff1845

Browse files
stream id generation (rsocket#220)
1 parent 4cc6e34 commit aff1845

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Protocol.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ A Stream ID MUST be locally unique for a Requester in a connection.
210210
Stream ID generation follows general guidelines for [HTTP/2](https://tools.ietf.org/html/rfc7540) with respect
211211
to odd/even values. In other words, a client MUST generate odd Stream IDs and a server MUST generate even Stream IDs.
212212

213+
Stream IDs on the client MUST start at 1 and increment by 2 sequentially, such as 1, 3, 5, 7, etc.
214+
215+
Stream IDs on the server MUST start at 2 and increment by 2 sequentially, such as 2, 4, 6, 8, etc.
216+
213217
#### Lifetime
214218

215219
Stream IDs MUST be used for only one stream per connection without re-use. Once the max Stream ID has been used (2^31-1), no new streams can be created, thus a new connection MUST be established to create new streams once the max has been met.

0 commit comments

Comments
 (0)