Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
f7966e1f58 | |||
9828f7bc13 |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@apiglobal/typedserver",
|
||||
"version": "2.0.63",
|
||||
"version": "2.0.64",
|
||||
"description": "easy serving of static files",
|
||||
"main": "dist_ts/index.js",
|
||||
"typings": "dist_ts/index.d.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'
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@apiglobal/typedserver',
|
||||
version: '2.0.63',
|
||||
version: '2.0.64',
|
||||
description: 'easy serving of static files'
|
||||
}
|
||||
|
Reference in New Issue
Block a user