Browse Source

perf: 关闭页面等待ws的最大重连时间改为6秒 (#12677)

Co-authored-by: feng <1304903146@qq.com>
pull/12681/head
fit2bot 9 months ago committed by GitHub
parent
commit
753ab77c46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      apps/notifications/ws.py

2
apps/notifications/ws.py

@ -83,7 +83,7 @@ class SiteMsgWebsocket(JsonWebsocketConsumer):
not user_session_manager.check_active(self.session.session_key)
def delay_delete_session(self):
timeout = 3
timeout = 6
check_interval = 0.5
start_time = time.time()

Loading…
Cancel
Save