Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
da19fab8d8 | |||
8d318dca28 | |||
d03bfcc793 | |||
4ba2686977 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartproxy",
|
||||
"version": "2.0.10",
|
||||
"version": "2.0.12",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartproxy",
|
||||
"version": "2.0.10",
|
||||
"version": "2.0.12",
|
||||
"private": false,
|
||||
"description": "a proxy for handling high workloads of proxying",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -162,6 +162,7 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
|
||||
{
|
||||
method: req.method,
|
||||
headers: req.headers,
|
||||
keepAlive: true
|
||||
},
|
||||
true, // lets make this streaming
|
||||
(request) => {
|
||||
@ -224,10 +225,24 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
|
||||
this.httpsServer.keepAliveTimeout = 61000;
|
||||
this.httpsServer.headersTimeout = 65000;
|
||||
|
||||
this.httpsServer.on('connection', (connection) => {
|
||||
this.httpsServer.on('connection', (connection: plugins.net.Socket) => {
|
||||
connection.setTimeout(120000);
|
||||
this.socketMap.add(connection);
|
||||
connection.on('close', () => {
|
||||
this.socketMap.remove(connection);
|
||||
connection.destroy();
|
||||
});
|
||||
connection.on('error', () => {
|
||||
this.socketMap.remove(connection);
|
||||
connection.destroy();
|
||||
});
|
||||
connection.on('end', () => {
|
||||
this.socketMap.remove(connection);
|
||||
connection.destroy();
|
||||
});
|
||||
connection.on('timeout', () => {
|
||||
this.socketMap.remove(connection);
|
||||
connection.destroy();
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user