Page MenuHomePhabricator

After an Aphlict disconnect, retry the first reconnect without a delay
Closed, ResolvedPublic

Description

Currently, we retry Aphlict connections after 2, 4, 8, 16, ... seconds.

Instead, after a successful connection, we should reset the retry duration to 0 seconds so that an interruption of a successful link is retried immediately. This improves behavior in these cases by getting us back in action two seconds sooner:

  • Stuff is load-balanced and one node was lost or restarted.
  • Temporary connection issue on the client.
  • ELB has default "kill clients after 30 seconds" behavior.

We should only drop to a 0-second retry after a successful connection. If we load the page and fail a connection right away, the next reconnect should wait 2 seconds: we shouldn't immediately double-request if the first try fails.