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
This commit is contained in:
Baptiste Clarey Sjostrand
2023-03-16 11:50:59 +01:00
committed by GitHub
parent d0757dbfe2
commit 2eb94d5fed

View File

@@ -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();
}
}