Events for streams and connections when they close #1611
-
Hey there again, This is probably in some doc, but I have not found it. So let's say that I create a connection, and then immediately create a stream (without the connection first establishing itself). Then let's say:
Is either: QUIC_STREAM_EVENT_PEER_SEND_SHUTDOWN, or QUIC_STREAM_EVENT_PEER_SEND_ABORTED or QUIC_STREAM_EVENT_SHUTDOWN_COMPLETE signaled? Is QUIC_CONNECTION_EVENT_SHUTDOWN_INITIATED_BY_TRANSPORT signaled?
Are any stream events signaled?
I would assume both the stream events and the connection events are signaled. True? Thanks so much. This library is really clear so far. I wish it did the simultaneous server+client on a socket, but since this doesn't actually solve all the edge cases, maybe it is better it doesn't work at all. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I've been working on stream API documentation all day. Some of it is still in PR and some of it is merged. What you want is in the StreamStart.md and StreamShutdown.md files. Essentially, If a stream isn't successfully started, then it won't get any events delivered to it. It has to do with a race condition between calling StreamOpen and an event firing. Since that's hard/impossible to handle, events aren't delivered until the app calls StreamStart; but if you don't call it, you get no events. Please let me know if you need additional clarification. |
Beta Was this translation helpful? Give feedback.
I've been working on stream API documentation all day. Some of it is still in PR and some of it is merged. What you want is in the StreamStart.md and StreamShutdown.md files. Essentially, If a stream isn't successfully started, then it won't get any events delivered to it. It has to do with a race condition between calling StreamOpen and an event firing. Since that's hard/impossible to handle, events aren't delivered until the app calls StreamStart; but if you don't call it, you get no events. Please let me know if you need additional clarification.