From 6f9a42251146a2b95c1b599d667e7956f2e93808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 15 Apr 2022 17:20:43 +0200 Subject: [PATCH] Web: don't hammer server trying to reconnect --- web/app/src/components/UpdateListener.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/app/src/components/UpdateListener.vue b/web/app/src/components/UpdateListener.vue index a0686eb5..d6744eea 100644 --- a/web/app/src/components/UpdateListener.vue +++ b/web/app/src/components/UpdateListener.vue @@ -55,7 +55,11 @@ export default { // The disconnection was initiated by the server, need to reconnect // manually. If the disconnect was for other reasons, the socket // should automatically try to reconnect. - socket.connect(); + + // Intentionally commented out function call, because this should + // happen with some nice exponential backoff instead of hammering the + // server: + // socket.connect(); } }); this.socket.on("reconnect", (attemptNumber) => {