mplex: allow for 28bit stream IDs.

This commit is contained in:
Steven Allen
2021-04-22 09:53:10 -07:00
parent 3292c8220d
commit 51ec3e5ab1

View File

@@ -62,7 +62,8 @@ flag = header & 0x07
id = header >> 3
```
The maximum header length is 9 bytes (per the unsigned-varint spec). With 9 continuation bits and 3 message flag bits the maximum stream ID is 60 bits (maximum value of `2^60 - 1`).
- Implementations MUST support up to 28bit stream IDs (32bit headers pre-encoding, 5 bytes after varint encoding).
- Implementations SHOULD support up to 60bit stream IDs (64bit headers pre-encoding, 9 bytes after varint encoding).
### Flag Values