frochet / draft-rochet-reverso-for-quic

0 stars 0 forks source link

Clarify total numbers of streams #2

Open frochet opened 2 months ago

frochet commented 2 months ago

Marten Seemann from the mailing list:

The total number of streams appears to be restricted to 2^30 (whereas RFC 9000's varint encoding allows for 2^62 streams).

We should probably clarify that the limitation applies to the max number of opened streams at any time. The upper 2^62 stays the same.

We may as well iterate on this. I am not particularly happy with the current solution.

frochet commented 2 months ago

Streams are monotonic increasing integers. This property can be exploited for the current solution to support a window of 2^30 streams opened in any time, up to the maximum value of 2^62. 2^30 should be well over any use case.

Another solution could be to write the stream ID within the Short header with a similar encoding/decoding than packet number.

Any preference?