From d57e191ad0be18acec3f8f9ac891c83234de2a53 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 31 Oct 2016 15:27:26 +0000 Subject: [PATCH] use socket.io connect method instead of reconnect the reconnect method tries 10 times by default, but we want to manage reconnections ourselves --- .../web/public/coffee/ide/connection/ConnectionManager.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/connection/ConnectionManager.coffee b/services/web/public/coffee/ide/connection/ConnectionManager.coffee index 0454395d69..aa4eeb99d1 100644 --- a/services/web/public/coffee/ide/connection/ConnectionManager.coffee +++ b/services/web/public/coffee/ide/connection/ConnectionManager.coffee @@ -207,7 +207,9 @@ define [], () -> delete @$scope.connection.reconnection_countdown return if @connected @$scope.connection.reconnecting = true - @ide.socket.socket.reconnect() + # use socket.io connect() here to make a single attempt, the + # reconnect() method makes multiple attempts + @ide.socket.socket.connect() setTimeout (=> @startAutoReconnectCountdown() if !@connected), 2000 disconnectIfInactive: ()->