Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Web streaming multithread example #375
Added a new example.
With the monothread web_streaming.py example, if there is more than one client connected, and one of these is slower than other ones, all the clients will be slowed down to its speed.
With multithread and producer/consumer method, this problem is solved.
I take the point that the current (deliberately simple) example could be improved, but I'm afraid I can't accept the PR as it is:
So, the suggestion overall is worthwhile but as I'm planning on getting 1.13 out today, rather than go back and forth with a PR, I'll tweak the recipe to include the threading bits from this. Sorry I couldn't accept it as is, but many thanks for the PR anyway!