UBERF-6374: Improve server logging and improve startup performance (#5210)

This commit is contained in:
Andrey Sobolev
2024-04-06 15:14:06 +07:00
committed by GitHub
parent ceac67f3a3
commit 034700a65b
39 changed files with 631 additions and 405 deletions
+3 -3
View File
@@ -128,7 +128,7 @@ class Connection implements ClientConnection {
}
}
delay = 1
delay = 0
pending: Promise<ClientSocket> | undefined
private async waitOpenConnection (): Promise<ClientSocket> {
@@ -140,7 +140,7 @@ class Connection implements ClientConnection {
}
this.pending = this.openConnection()
await this.pending
this.delay = 5
this.delay = 0
return await this.pending
} catch (err: any) {
this.pending = undefined
@@ -154,7 +154,7 @@ class Connection implements ClientConnection {
setTimeout(() => {
console.log(`delay ${this.delay} second`)
resolve(null)
if (this.delay !== 15) {
if (this.delay < 5) {
this.delay++
}
}, this.delay * SECOND)