Bidirectional streaming #1572
Unanswered
benblack769
asked this question in
Potential Issue
Replies: 2 comments
-
I tried partially related stuff with re-streaming audio data from another source of bytes using asyncio.Queue. And had two sources for having unbreakable stream. So when one source is awaiting, another one always produced "silence" chunks. Then my queue is "always" filled in.
P.S. Though I sticked with the problem of starlette wrappers which added some redundant bytes which breaks my ICY (Icecast) protocol for meta data inserting. https://stackoverflow.com/q/79142077/15080117 |
Beta Was this translation helpful? Give feedback.
0 replies
-
See #1830. Will be fixed by #2732 eventually. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to create a web service with bidirectional streaming, i.e. the server should concurrently be receiving new data chunks at the same time it is sending back chunks. This is a key feature of the http/2.0 protocol. Here is my minimal reproducible example:
And here is a way of calling it with a large dataset, generated with
python -c 'print("data"*1000*1000*8)' > massive_request.txt
This call stalls after uploading ~10% of the data, and makes no further progress.
Now I know this should be possible because I managed to get an identical server running with the Quart framework:
And this works perfectly.
Beta Was this translation helpful? Give feedback.
All reactions