Compare commits

...

8 Commits

Author SHA1 Message Date
28d050851f 3.0.33 2022-08-01 12:56:15 +02:00
acbd109985 fix(core): update 2022-08-01 12:56:14 +02:00
cc38a6d10e 3.0.32 2022-08-01 12:55:01 +02:00
748b07efe2 fix(core): update 2022-08-01 12:55:00 +02:00
be4fd0978a 3.0.31 2022-08-01 12:31:30 +02:00
4521010b82 fix(core): update 2022-08-01 12:31:29 +02:00
bd1f1a4c1c 3.0.30 2022-07-31 08:30:13 +02:00
d3bdd56660 fix(core): update 2022-07-31 08:30:13 +02:00
4 changed files with 10 additions and 6 deletions

4
package-lock.json generated
View File

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

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartproxy",
"version": "3.0.29",
"version": "3.0.33",
"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.29',
version: '3.0.33',
description: 'a proxy for handling high workloads of proxying'
}

View File

@ -128,6 +128,7 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
) => {
res.writeHead(statusArg, messageArg);
res.end(messageArg);
res.destroy();
};
console.log(`got request: ${req.headers.host}${plugins.url.parse(req.url).path}`);
@ -200,6 +201,7 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
request.end();
});
req.on('timeout', () => {
req.destroy();
request.end();
})
}
@ -226,6 +228,7 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
});
response.on('timeout', () => {
res.end();
res.destroy()
});
}
@ -258,8 +261,8 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
// handle closing
const cleanUp = () => {
ws.close();
wsc.close();
ws.terminate();
wsc.terminate();
};
ws.on('close', (message) => {
@ -281,6 +284,7 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
if (this.socketMap.checkForObject(connection)) {
this.socketMap.remove(connection);
console.log(`removed connection. ${this.socketMap.getArray().length} sockets remaining.`);
connection.destroy();
}
};
connection.on('close', () => {