From 2eb94d5fedb727385839f1e9e3d808a9e43a299d Mon Sep 17 00:00:00 2001 From: Baptiste Clarey Sjostrand <112877883+baphony@users.noreply.github.com> Date: Thu, 16 Mar 2023 11:50:59 +0100 Subject: [PATCH] RTC-13903 fix c9 multiple network messages 23.4 (#1789) * RTC-13903 Fix C9 process restarting loop When C9 process starts, sometimes we get a 'no connection' message, then a 'connection available' which triggers the c9 process restart. * RTC-13903 Fix C9 multiple network messages --- src/app/c9-shell-handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/c9-shell-handler.ts b/src/app/c9-shell-handler.ts index 2e925810..cc38d0f0 100644 --- a/src/app/c9-shell-handler.ts +++ b/src/app/c9-shell-handler.ts @@ -248,8 +248,8 @@ class C9ShellHandler { this._isDisconnected = false; const millisecondsElapsed = Date.now() - this._firstSuccessfulConnectionDate; - // Sometime, we have 2 network connections in 4 seconds (while using a virtual machine) - if (millisecondsElapsed > 10000) { + // Using a virtual machine, we got 18 network connections in 40 seconds + if (millisecondsElapsed > 90000) { this._onNetworkReconnection(); } }