mirror of
https://github.com/remnawave/node.git
synced 2026-08-28 04:31:56 +00:00
feat: increase timeouts
This commit is contained in:
parent
722eb238cd
commit
dd4a95f4e5
1 changed files with 2 additions and 6 deletions
|
|
@ -84,8 +84,6 @@ export class XrayService implements OnApplicationBootstrap, OnModuleInit {
|
|||
|
||||
const fullConfig = generateApiConfig(config);
|
||||
|
||||
this.logger.debug(JSON.stringify(fullConfig, null, 2));
|
||||
|
||||
if (this.configEqualChecking) {
|
||||
this.logger.log('Getting config checksum...');
|
||||
const newChecksum = this.getConfigChecksum(fullConfig);
|
||||
|
|
@ -132,7 +130,7 @@ export class XrayService implements OnApplicationBootstrap, OnModuleInit {
|
|||
reject: false,
|
||||
all: true,
|
||||
cleanup: true,
|
||||
timeout: 20_000,
|
||||
timeout: 60_000,
|
||||
lines: true,
|
||||
});
|
||||
|
||||
|
|
@ -145,8 +143,6 @@ export class XrayService implements OnApplicationBootstrap, OnModuleInit {
|
|||
isStarted = await this.getXrayInternalStatus();
|
||||
}
|
||||
|
||||
this.logger.debug(`isStarted: ${isStarted}`);
|
||||
|
||||
if (!isStarted) {
|
||||
this.isXrayOnline = false;
|
||||
|
||||
|
|
@ -328,7 +324,7 @@ export class XrayService implements OnApplicationBootstrap, OnModuleInit {
|
|||
}
|
||||
|
||||
private async getXrayInternalStatus(): Promise<boolean> {
|
||||
const maxRetries = 3;
|
||||
const maxRetries = 8;
|
||||
const delay = 2000;
|
||||
|
||||
for (let attempt = 0; attempt < maxRetries; attempt++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue