Revert "mplex: allow for 28bit stream IDs."

This reverts commit 51ec3e5ab1.

See the discussion starting at:

https://github.com/libp2p/specs/pull/317#issuecomment-826362668
This commit is contained in:
Steven Allen
2021-04-27 10:41:34 -07:00
parent 4480efe66c
commit cc7c986a2e

View File

@@ -62,8 +62,7 @@ flag = header & 0x07
id = header >> 3
```
- 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).
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`).
### Flag Values