mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-02-05 15:29:35 +08:00
新增 强制自动重连机制
This commit is contained in:
parent
3fe39b3055
commit
c279a49844
@ -70,9 +70,9 @@ export class RemoteServiceConfig {
|
||||
public apiKey = "";
|
||||
connectOpts: SocketIOClient.ConnectOpts = {
|
||||
multiplex: false,
|
||||
reconnectionDelayMax: 3000,
|
||||
timeout: 3000,
|
||||
reconnectionDelayMax: 1000 * 3,
|
||||
timeout: 1000 * 3,
|
||||
reconnection: true,
|
||||
reconnectionAttempts: 1000
|
||||
reconnectionAttempts: 20
|
||||
};
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ class RemoteServiceSubsystem extends UniversalRemoteSubsystem<RemoteService> {
|
||||
this.services?.forEach((v) => {
|
||||
if (v && v.available === false) {
|
||||
logger.warn(
|
||||
`[守护进程状态检查] 检测到守护进程 ${v.config.remarks} ${v.config.ip}:${v.config.port} 状态异常,正在重置并连接`
|
||||
`检测到守护进程 ${v.config.remarks} ${v.config.ip}:${v.config.port} 状态异常,正在重置并连接`
|
||||
);
|
||||
return v.connect();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user