-
Based on the comment in remarks https://github.com/microsoft/msquic/blob/main/docs/api/StreamStart.md#remarks:
In what exact cases won't the events come? I've observed:
Are those all? Just making sure we do proper clean up in all cases and don't wait for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hopefully that answers all your questions, but I don't quite understand this statement:
As long as a stream hasn't been accepted by the peer, all the state is just "queued" locally. If the stream is eventually shutdown before the peer accepts it, everything is still cleaned up. |
Beta Was this translation helpful? Give feedback.
StreamStart
call fails, you will receive no notifications. It can only fail though if you're calling the API at the wrong time, with the wrong parameters, or on allocation failure.START_COMPLETE
event indicates failure (nonQUIC_SUCCEEDED(Status)
code), then you will not get any further notification except for:QUIC_STREAM_START_FLAG_SHUTDOWN_ON_FAIL
, then you will get aSHUTDOWN_COMPLETE
, and nothing else.StreamStart
again (for instance, because you called the first time withQUIC_STREAM_START_FLAG_FAIL_BLOCKED
and there wasn't any available), and it succeeds, then the stream will operate as normal.