The current logic for determining whether a stream is incoming or not seems incorrect to me.
Specifically, the logic:
|
const incoming = this.isclient ? !(streamid & 0x1n) : !!(streamid & 0x1n) |
For example, when streamid = 4n:
- This is a client-initiated bidirectional stream.
- If this.isclient === false (i.e., we are the server), this stream should be incoming.
- However, this code returns false.
As I understand it, stream ID 4 should be treated as an incoming stream on the server side.
Am I missing something?
The current logic for determining whether a stream is incoming or not seems incorrect to me.
Specifically, the logic:
webtransport/main/lib/http2/parserbase.js
Line 118 in 3475169
For example, when streamid = 4n:
As I understand it, stream ID 4 should be treated as an incoming stream on the server side.
Am I missing something?