From 889d8ae3d702004eef6f42c00f31538e16e09fbb Mon Sep 17 00:00:00 2001 From: Javan Makhmali Date: Wed, 14 Oct 2015 18:06:23 -0500 Subject: Remove immediate reconnect to help avoid thundering herd after server restarts --- lib/assets/javascripts/cable/connection_monitor.coffee | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib') diff --git a/lib/assets/javascripts/cable/connection_monitor.coffee b/lib/assets/javascripts/cable/connection_monitor.coffee index 30ce11957c..b8be94ae60 100644 --- a/lib/assets/javascripts/cable/connection_monitor.coffee +++ b/lib/assets/javascripts/cable/connection_monitor.coffee @@ -20,10 +20,6 @@ class Cable.ConnectionMonitor @pingedAt = now() disconnected: -> - if @reconnectAttempts++ is 0 - setTimeout => - @consumer.connection.open() unless @consumer.connection.isOpen() - , 200 received: -> @pingedAt = now() -- cgit v1.2.3