websocket
websocket copied to clipboard
Websocket exponential backoff is not randomized
Websocket reconnect attempts should be spaced out randomly, to spread out any spikes that might have caused the outage in the first place. Otherwise you'll just overload the server again every 2^c
seconds.
Ethernet uses a random backoff between 0
and 2^c-1
, and we should do something similar.
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.