websocket icon indicating copy to clipboard operation
websocket copied to clipboard

Websocket exponential backoff is not randomized

Open drathier opened this issue 7 years ago • 1 comments

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.

drathier avatar Dec 09 '17 12:12 drathier

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.

process-bot avatar Dec 09 '17 12:12 process-bot