mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
Exempt a particular client name from heartbeats for testing
(imported from commit 3914130384a7a9854b006405ffd2fe379bbd090d)
This commit is contained in:
@@ -130,7 +130,8 @@ class ClientDescriptor(object):
|
||||
self.add_event(dict(type='heartbeat'))
|
||||
ioloop = tornado.ioloop.IOLoop.instance()
|
||||
heartbeat_time = time.time() + HEARTBEAT_MIN_FREQ_SECS + random.randint(0, 10)
|
||||
self._timeout_handle = ioloop.add_timeout(heartbeat_time, timeout_callback)
|
||||
if self.client_type.name != 'API: heartbeat test':
|
||||
self._timeout_handle = ioloop.add_timeout(heartbeat_time, timeout_callback)
|
||||
logging.info("DEBUG: connected handler for queue %s" % (self.event_queue.id,))
|
||||
|
||||
def disconnect_handler(self):
|
||||
|
||||
Reference in New Issue
Block a user