Replies: 1 comment
-
Totally surprised I am the only one running into this issue. I'll answer my own question. Simply subclass the WebSocketProtocol and set the open_timeout in init():
And in the config, reference it:
|
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
-
Websockets legacy/server.py (WebSocketProtocol) has an init() parameter open_timeout:
open_timeout: Optional[float] = 10,
I am running Gunicorn with Uvicorn workers and I can't seem to find a way to override that value.
We have a case where we are running Django-Channels AsyncConsumers that drop into sync mode (database_sync_to_async) and are consuming all the workers from time to time. Others just trying to connect are getting a timeout because the default is 10.
Looking for a way to override this.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions