open-consul/ui-v2/app/utils/dom/event-source
John Cowen 913ae5cfb3
ui: Reduce reconnection attempts on disconnection (#8481)
* ui: Reduce reconnection attempts on disconnection

The UI will attempt to reconnect/retry a blocking query to Consul after
a disconnection in certain circumstances.

1. On receipt of a 5xx error (used for keeping blocking queries running
through reverse proxies that have lowertimeouts than consul itself)
2. When a user switches to a different tab and back again)
3. When the connection to Consul is dropped entirely (when Consul itself
has exited)

In the last case the retry attempts where not using a 3 second interval
between attempts like the first case is.

This commit changes the last case to use the same 3 second pause as the
last case.
2020-08-11 18:47:15 +01:00
..
blocking.js ui: Reduce reconnection attempts on disconnection (#8481) 2020-08-11 18:47:15 +01:00
cache.js UI: Add EventSource ready for implementing blocking queries (#5070) 2019-05-01 18:22:06 +00:00
callable.js ui: Move routes to use data-sources (#8321) 2020-07-17 14:42:45 +01:00
index.js ui: Add DataSource component (#7448) 2020-05-12 17:14:18 +00:00
openable.js ui: UI Release Merge (ui-staging merge) (#6527) 2019-09-30 14:47:49 +01:00
proxy.js ui: Remove WithEventSource mixin, use a component instead (#7953) 2020-06-17 14:19:50 +01:00
resolver.js ui: Change vocab of ReopenableEventSource from 'reopen' to 'open' (#5973) 2019-09-04 08:35:02 +00:00
storage.js ui: Add DataSource component (#7448) 2020-05-12 17:14:18 +00:00