From 87d8192d2961d439f4ad4627240f55c4b78c9dcd Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 3 Nov 2016 12:25:36 +0000 Subject: [PATCH] decrease reconnect ratelimit for user activity --- .../web/public/coffee/ide/connection/ConnectionManager.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/public/coffee/ide/connection/ConnectionManager.coffee b/services/web/public/coffee/ide/connection/ConnectionManager.coffee index 61d3d1c37d..0791e2ddc4 100644 --- a/services/web/public/coffee/ide/connection/ConnectionManager.coffee +++ b/services/web/public/coffee/ide/connection/ConnectionManager.coffee @@ -226,8 +226,8 @@ define [], () -> @lastConnectionAttempt = new Date() setTimeout (=> @startAutoReconnectCountdown() if !@connected), 2000 - MIN_RETRY_INTERVAL: 1000 # ms - BACKGROUND_RETRY_INTERVAL : 30 * 1000 # ms + MIN_RETRY_INTERVAL: 1000 # ms, rate limit on reconnects for user clicking "try now" + BACKGROUND_RETRY_INTERVAL : 5 * 1000 # ms, rate limit on reconnects for other user activity (e.g. cursor moves) tryReconnectWithRateLimit: (options) -> # bail out if the reconnect is already in progress