Miguel Grinberg
Miguel Grinberg
I think this is probably related to https://github.com/miguelgrinberg/flask-sock/issues/64. It appears the Gevent worker in Gunicorn does not implement the same mechanism as the threaded worker to exit out of a...
Please create small server and client apps that I can use to reproduce this issue. The information you provided is insufficient for me to test or diagnose the issue. Thanks.
First of all, you can change the maximum packet size. You've mentioned this yourself, you can use `max_http_buffer_size`. What happens in the client application after the loop emitting all the...
Well, that is likely the problem. If you are sending a lot of data it may take a while for the background tasks for flush everything out. If you disconnect...
> If you think the disconnect should not block until queued messages are flushed There's two ways to send events, `emit()` and `call()`. The former schedules the event and returns...
@afcristia The "%" that you have in your password is causing this, because this character is used for interpolation. Use "%%" to escape it.
To determine where is this happening it would be useful to see the complete stack trace of the error.
In env.py, change this line: ```python config.set_main_option("sqlalchemy.url", engine.url.render_as_string( hide_password=False)) ``` to this: ```python config.set_main_option("sqlalchemy.url", engine.url.render_as_string( hide_password=False).replace('%', '%%')) ``` Let me know if that helps!
With Flask-Sock you have a Flask view function, you can use Flask's `request` to access headers, cookies, etc.
I'm testing this here and everything seems to work. This is what I've tested: I modified `app.py` from the `examples/server/asgi` directory to use the Redis client manager. Diff: ```diff diff...