Can the Server side initiate a Stream and send data over it? #4257
-
Hi, I am new to the MSQUIC library, and I am struggling to do just basic Server - Client connection. I want the Server to listen for connections, and the Client to connect and open a QUIC Connection. When the connection is established, It's the server that should start STREAMS in the connection, and send data over it. I tried to do so, but on the client side i receive an Connection EVENT of type QUIC_CONNECTION_EVENT_PEER_NEEDS_STREAMS. Does that mean that the Server cannot start streams, but it can express the need for streams and its the Cleint who actually has to open streams? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yep! The client just needs to configure its settings to allow for the server to create streams. Streams can always be created by either side, if the peer allows. |
Beta Was this translation helpful? Give feedback.
Expanding on what Nick said, see Settings and QUIC_SETTINGS. The
PeerBidiStreamCount
andPeerUniDiStreamCount
need to be non-zero on the client side to allow the server to open streams.