Skip to content

Why the Connection ID and Stream ID are different between Android and windows? #3491

Answered by anrossi
Ang0426 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,
the IDs shared above look like memory addresses, not connection IDs, and not stream IDs. A connection ID is a 20-byte identifier MsQuic generates automatically and isn't accessible via the API. The stream ID is accessible via the API, with GetParam and the QUIC_PARAM_STREAM_ID parameter.

If the connection is shutdown shortly after connecting, make sure you set PeerBidiStreamCount or PeerUnidiStreamCount in QUIC_SETTINGS to a non-zero value, on the peer that is expected to receive streams. MsQuic only opens streams when a peer has explicitly allowed them. By default, no streams are allowed so the program can decide how many streams to allow.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ang0426
Comment options

Answer selected by nibanks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants