From 9828f7bc13be8927d535a5b00eded423b5a5ede2 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sun, 2 Jul 2023 02:09:04 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/servertools/classes.server.ts | 3 ++- ts_web/00_commitinfo_data.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 8b03e7b..fa0e455 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiglobal/typedserver', - version: '2.0.63', + version: '2.0.64', description: 'easy serving of static files' } diff --git a/ts/servertools/classes.server.ts b/ts/servertools/classes.server.ts index d500f4b..e9b4f50 100644 --- a/ts/servertools/classes.server.ts +++ b/ts/servertools/classes.server.ts @@ -244,7 +244,7 @@ export class Server { connection.addListener('end', endListener); connection.addListener('timeout', timeoutListener); - const cleanupConnection = () => { + const cleanupConnection = async () => { connection.removeListener('close', closeListener); connection.removeListener('error', errorListener); connection.removeListener('end', endListener); @@ -253,6 +253,7 @@ export class Server { if (this.socketMap.checkForObject(connection)) { this.socketMap.remove(connection); console.log(`removed connection. ${this.socketMap.getArray().length} sockets remaining.`); + await plugins.smartdelay.delayFor(0); connection.destroy(); } }; diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 8b03e7b..fa0e455 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiglobal/typedserver', - version: '2.0.63', + version: '2.0.64', description: 'easy serving of static files' }