Closed go-jar closed 2 years ago
How did it fail? You cannot write the whole video stream (assuming it is decently sized) without interleaving with the peer reading from that stream, since streams can contain limited buffered data before raising an error. The solution of using separate tasks for the reader and the writer seems like a fine solution for this.
How did it fail? You cannot write the whole video stream (assuming it is decently sized) without interleaving with the peer reading from that stream, since streams can contain limited buffered data before raising an error. The solution of using separate tasks for the reader and the writer seems like a fine solution for this.
Thanks!
I want to send vedio stream using quinn. But every time I send a video stream by calling open_uni(), it is always failed. I think it because the encryption is too time-consuming. So I move open_uni() to a thread like follows.
And it works. Is there a better way?