-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[change] Added variable to configure daphne websocket timeout #321
Conversation
This timeout value is also used for configuring the "group_expiry" of CHANNEL_LAYERS.
@@ -2,7 +2,7 @@ | |||
user={{ www_user }} | |||
socket=unix://{{ openwisp2_path }}/daphne0.sock | |||
directory={{ openwisp2_path }} | |||
command={{ openwisp2_path }}/env/bin/daphne --fd 0 -u {{ openwisp2_path }}/daphne%(process_num)d.sock --access-log - --proxy-headers openwisp2.asgi:application | |||
command={{ openwisp2_path }}/env/bin/daphne --fd 0 -u {{ openwisp2_path }}/daphne%(process_num)d.sock --access-log - --websocket_timeout {{ openwisp2_daphne_websocket_timeout }} --proxy-headers openwisp2.asgi:application |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value for websocket_timeout is 24 hours. This is the maximum allowed time a websocket is allowed to stay connected. In OpenWISP, I believe 1 hour is more than enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's check whether the frontend JS code can handle the timeout and reconnect.
meta/main.yml
Outdated
@@ -9,7 +9,7 @@ dependencies: | |||
postfix_smtpd_relay_restrictions: "{{ postfix_smtpd_relay_restrictions_override }}" | |||
|
|||
- src: https://github.com/openwisp/ansible-ow-influxdb | |||
version: origin/master | |||
version: origin/issues/3-updating-user-password |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this will have to be updated
680d417
to
b2de714
Compare
This timeout value is also used for configuring the "group_expiry"
of CHANNEL_LAYERS.