Miguel Grinberg

Results 485 comments of Miguel Grinberg

@Codeforglory that is not a problem you can address from this side. You have to make your frame generator work faster, at a slower frame rate or with smaller image...

I have not done any testing with picamera2, but there is a PR from a while ago with some code: https://github.com/miguelgrinberg/flask-video-streaming/pull/80

I don't understand how this works. Gunicorn expects `StopIteration` to be raised as a signal that the request should be ended. You have changed the exception to a different one...

Can you please create a short and simple example application that demonstrates the issue? The latest Flask and Werkzeug versions should be supported.

I think it is going to be very difficult to debug this just by looking at the bytes. What the server sends is a standard protocol error. What matters is...

The WebSocket logic is not in this repository, you will need to look at the wsproto package, where the low-level protocol handshakes are implemented.

@barv-di There is a gevent example in this repo. You are not doing this correctly. Two problems, a) you need to monkey patch the standard library for Gevent compatibility and...

See the documentation for how to run with gunicorn: https://flask-sock.readthedocs.io/en/latest/web_servers.html#id3

The code that I shown above is written to be used with the gevent web server, not gunicorn. I based it on your own code. Does it work that way?...

@erikpa1 Try with a production web server. You are using the Flask development web server for this and on top of that you are using development mode in your app....