diff options
author | Javan Makhmali <javan@javan.us> | 2015-10-14 18:06:23 -0500 |
---|---|---|
committer | Javan Makhmali <javan@javan.us> | 2015-10-14 18:06:23 -0500 |
commit | 889d8ae3d702004eef6f42c00f31538e16e09fbb (patch) | |
tree | 45938377516b50513051c953d90a3df5bfe58eab /lib/assets/javascripts | |
parent | 7ec1290f27656e51c7a6ad4ef4238c1dc22f7615 (diff) | |
download | rails-889d8ae3d702004eef6f42c00f31538e16e09fbb.tar.gz rails-889d8ae3d702004eef6f42c00f31538e16e09fbb.tar.bz2 rails-889d8ae3d702004eef6f42c00f31538e16e09fbb.zip |
Remove immediate reconnect to help avoid thundering herd after server restarts
Diffstat (limited to 'lib/assets/javascripts')
-rw-r--r-- | lib/assets/javascripts/cable/connection_monitor.coffee | 4 |
1 files changed, 0 insertions, 4 deletions
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() |