You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.error(`No socket connection for ${healthCheckFailuresCount*SOCKET_HEALTH_CHECK_INTERVAL_MS/1000} seconds. Exiting due to orphan node process detection.`);
114
-
process.exit(1);
115
-
}
116
111
117
-
if(controlSocketMain||largeDataSocketMain){
118
-
// Reset failure count if any socket is connected
119
-
healthCheckFailuresCount=0;
120
-
return;
121
-
}
122
-
console.warn(`No active sockets detected, node will be terminated in ${(RETRY_HEALTH_CHECK_MAX_COUNT-healthCheckFailuresCount)*SOCKET_HEALTH_CHECK_INTERVAL_MS/1000} seconds`);
console.error(`No socket connection for ${healthCheckFailuresCount*SOCKET_HEALTH_CHECK_INTERVAL_MS/1000} seconds. Exiting due to orphan node process detection.`);
116
+
process.exit(1);
117
+
}
118
+
119
+
if(controlSocketMain||largeDataSocketMain){
120
+
// Reset failure count if any socket is connected
121
+
healthCheckFailuresCount=0;
122
+
return;
123
+
}
124
+
console.warn(`No active sockets detected, node will be terminated in ${(RETRY_HEALTH_CHECK_MAX_COUNT-healthCheckFailuresCount)*SOCKET_HEALTH_CHECK_INTERVAL_MS/1000} seconds`);
125
+
healthCheckFailuresCount++;
126
+
},SOCKET_HEALTH_CHECK_INTERVAL_MS);
127
+
}
125
128
126
129
constMAX_PENDING_SEND_BUFFER=10000;
127
130
letpendingSendBuffer=[];
@@ -363,6 +366,7 @@ function processWSCommand(ws, metadata, dataBuffer) {
0 commit comments