Skip to content

How to create multiple streams with custom ID? And how to pause/resume these streams? #339

Answered by Kulsk
parthibx24 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. stream id is sequential and is not designed to be controlled by users. otherwise it is vulnerable as many QUIC implementations might create those streams with stream_id lower than the current. some QUIC implementations might consider this as STREAM_LIMIT_ERROR connection error. for example, the peer defines MAX_BIDI_STREAMS as 100 and expects stream starts with stream_id 0, and user come up with a stream with stream_id 404, which exceeds 100 and the peer might close connection.

  2. if you got nothing to send, do nothing when stream_write_notify callback triggers, when you get some data to send, try xqc_stream_send. if the send window is full, you can continue sending the remain data when …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by parthibx24
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