Compare commits

...

10 Commits

Author SHA1 Message Date
c38a7c4c32 3.0.29 2022-07-30 23:00:23 +02:00
858628196a fix(core): update 2022-07-30 23:00:23 +02:00
4910679058 3.0.28 2022-07-30 23:00:15 +02:00
97db2012ca fix(core): update 2022-07-30 23:00:15 +02:00
0ee13b4e06 3.0.27 2022-07-30 22:40:08 +02:00
21f5882fa3 fix(core): update 2022-07-30 22:40:08 +02:00
48b43f9f0d 3.0.26 2022-07-30 22:29:31 +02:00
d3d476fd53 fix(core): update 2022-07-30 22:29:31 +02:00
b80b8a0a20 3.0.25 2022-07-30 22:20:31 +02:00
384943f697 fix(core): update 2022-07-30 22:20:31 +02:00
4 changed files with 6 additions and 17 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@pushrocks/smartproxy",
"version": "3.0.24",
"version": "3.0.29",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@pushrocks/smartproxy",
"version": "3.0.24",
"version": "3.0.29",
"license": "MIT",
"dependencies": {
"@pushrocks/lik": "^6.0.0",

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartproxy",
"version": "3.0.24",
"version": "3.0.29",
"private": false,
"description": "a proxy for handling high workloads of proxying",
"main": "dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartproxy',
version: '3.0.24',
version: '3.0.29',
description: 'a proxy for handling high workloads of proxying'
}

View File

@ -201,7 +201,6 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
});
req.on('timeout', () => {
request.end();
request.destroy();
})
}
);
@ -227,8 +226,8 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
});
response.on('timeout', () => {
res.end();
res.destroy();
});
}
);
@ -260,9 +259,7 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
// handle closing
const cleanUp = () => {
ws.close();
ws.terminate();
wsc.close();
wsc.terminate();
};
ws.on('close', (message) => {
@ -273,25 +270,17 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
cleanUp();
});
});
});
this.httpsServer.keepAliveTimeout = 61000;
this.httpsServer.headersTimeout = 65000;
this.httpsServer.on('connection', (connection: plugins.net.Socket) => {
connection.setTimeout(60000);
this.socketMap.add(connection);
console.log(`added connection. now ${this.socketMap.getArray().length} sockets connected.`);
const cleanupConnection = () => {
if (this.socketMap.checkForObject(connection)) {
this.socketMap.remove(connection);
console.log(`removed connection. ${this.socketMap.getArray().length} sockets remaining.`);
connection.end();
connection.destroy();
console.log(`socket successfully destroyed.`);
plugins.smartdelay.delayFor(10000).then(() => {
connection.removeAllListeners();
})
}
};
connection.on('close', () => {
@ -305,7 +294,7 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
});
connection.on('timeout', () => {
cleanupConnection();
});
})
});
this.httpsServer.listen(this.options.port);