fix(core): update
This commit is contained in:
parent
da19fab8d8
commit
fa04732241
6
package-lock.json
generated
6
package-lock.json
generated
@ -11438,9 +11438,9 @@
|
|||||||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
|
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
|
||||||
},
|
},
|
||||||
"ws": {
|
"ws": {
|
||||||
"version": "7.4.2",
|
"version": "7.4.3",
|
||||||
"resolved": "https://verdaccio.lossless.one/ws/-/ws-7.4.2.tgz",
|
"resolved": "https://verdaccio.lossless.one/ws/-/ws-7.4.3.tgz",
|
||||||
"integrity": "sha512-T4tewALS3+qsrpGI/8dqNMLIVdq/g/85U98HPMa6F0m6xTbvhXU6RCQLqPH3+SlomNV/LdY6RXEbBpMH6EOJnA=="
|
"integrity": "sha512-hr6vCR76GsossIRsr8OLR9acVVm1jyfEWvhbNjtgPOrfvAlKzvyeg/P6r8RuDjRyrcQoPQT7K0DGEPc7Ae6jzA=="
|
||||||
},
|
},
|
||||||
"xml-js": {
|
"xml-js": {
|
||||||
"version": "1.6.11",
|
"version": "1.6.11",
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
"@pushrocks/smartsystem": "^2.0.9",
|
"@pushrocks/smartsystem": "^2.0.9",
|
||||||
"@tsclass/tsclass": "^3.0.29",
|
"@tsclass/tsclass": "^3.0.29",
|
||||||
"@types/ws": "^7.4.0",
|
"@types/ws": "^7.4.0",
|
||||||
"ws": "^7.4.2"
|
"ws": "^7.4.3"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
|
@ -228,21 +228,22 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
|
|||||||
this.httpsServer.on('connection', (connection: plugins.net.Socket) => {
|
this.httpsServer.on('connection', (connection: plugins.net.Socket) => {
|
||||||
connection.setTimeout(120000);
|
connection.setTimeout(120000);
|
||||||
this.socketMap.add(connection);
|
this.socketMap.add(connection);
|
||||||
connection.on('close', () => {
|
const cleanupConnection = (connectionArg: plugins.net.Socket) => {
|
||||||
|
connectionArg.removeAllListeners();
|
||||||
this.socketMap.remove(connection);
|
this.socketMap.remove(connection);
|
||||||
connection.destroy();
|
connection.destroy();
|
||||||
|
}
|
||||||
|
connection.on('close', () => {
|
||||||
|
cleanupConnection(connection);
|
||||||
});
|
});
|
||||||
connection.on('error', () => {
|
connection.on('error', () => {
|
||||||
this.socketMap.remove(connection);
|
cleanupConnection(connection);
|
||||||
connection.destroy();
|
|
||||||
});
|
});
|
||||||
connection.on('end', () => {
|
connection.on('end', () => {
|
||||||
this.socketMap.remove(connection);
|
cleanupConnection(connection);
|
||||||
connection.destroy();
|
|
||||||
});
|
});
|
||||||
connection.on('timeout', () => {
|
connection.on('timeout', () => {
|
||||||
this.socketMap.remove(connection);
|
cleanupConnection(connection);
|
||||||
connection.destroy();
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user