mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Lower the server-side heartbeat frequency slightly so its maximum value is less than 60
(imported from commit d61e12a985d833843c9ae757465701f0057d5ee8)
This commit is contained in:
@@ -14,7 +14,12 @@ import tornado
|
||||
import random
|
||||
|
||||
IDLE_EVENT_QUEUE_TIMEOUT_SECS = 60 * 10
|
||||
HEARTBEAT_MIN_FREQ_SECS = 50
|
||||
# The heartbeats effectively act as a server-side timeout for
|
||||
# get_events(). The actual timeout value is randomized for each
|
||||
# client connection based on the below value. We ensure that the
|
||||
# maximum timeout value is 55 seconds, to deal with crappy home
|
||||
# wireless routers that kill "inactive" http connections.
|
||||
HEARTBEAT_MIN_FREQ_SECS = 45
|
||||
|
||||
class ClientDescriptor(object):
|
||||
def __init__(self, user_profile_id, id, event_types=None, apply_markdown=True):
|
||||
|
||||
Reference in New Issue
Block a user