rails--rails/actioncable/test
Jonathan Hefner cc9a9e8503 Prevent thundering herd of Action Cable clients
This commit makes a few changes to the Action Cable client to prevent a
"thundering herd" of client reconnects after server connectivity loss:

* The client will wait a random amount between 1x and 3x of the stale
  threshold after the server's last ping before making the first
  reconnection attempt.
* Subsequent reconnection attempts now use exponential backoff instead
  of logarithmic backoff.  To allow the delay between reconnection
  attempts to increase slowly at first, the default exponentiation base
  is < 2.
* Random jitter is applied to each delay between reconnection attempts.

Co-authored-by: John Williams <john@veloshots.com>
2021-02-02 10:43:05 -06:00
..
channel
connection
javascript/src Prevent thundering herd of Action Cable clients 2021-02-02 10:43:05 -06:00
server
stubs
subscription_adapter
client_test.rb
javascript_package_test.rb
test_helper.rb
test_helper_test.rb
worker_test.rb