There are multiple ways to set the callback parameter app_stream_ctx for writing streams, but there are no ways to do that for read only streams -- the call to picoquic_set_app_stream_ctx only works if the stream is writeable.
There is an easy fix, allow that for any existing stream.
Actually, the call to picoquic_set_app_stream_ctx will succeed if the stream is already created. Will try to use that call for receiving data on unidirectional stream.
The stream data callback is triggered in
picoquic_stream_data_chunk_callback
as:There are multiple ways to set the callback parameter
app_stream_ctx
for writing streams, but there are no ways to do that for read only streams -- the call topicoquic_set_app_stream_ctx
only works if the stream is writeable.There is an easy fix, allow that for any existing stream.