Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
e9ac7b2347 | |||
2c59540768 | |||
0f82d63f5c | |||
b5fcdadd3d |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartproxy",
|
"name": "@pushrocks/smartproxy",
|
||||||
"version": "2.0.6",
|
"version": "2.0.8",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartproxy",
|
"name": "@pushrocks/smartproxy",
|
||||||
"version": "2.0.6",
|
"version": "2.0.8",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a proxy for handling high workloads of proxying",
|
"description": "a proxy for handling high workloads of proxying",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -25,6 +25,8 @@ const portProxyCalls = {
|
|||||||
to.removeAllListeners();
|
to.removeAllListeners();
|
||||||
from.unpipe();
|
from.unpipe();
|
||||||
to.unpipe();
|
to.unpipe();
|
||||||
|
from.destroy();
|
||||||
|
to.destroy();
|
||||||
}
|
}
|
||||||
netServer = net
|
netServer = net
|
||||||
.createServer((from) => {
|
.createServer((from) => {
|
||||||
@ -32,6 +34,7 @@ const portProxyCalls = {
|
|||||||
host: 'localhost',
|
host: 'localhost',
|
||||||
port: 8001,
|
port: 8001,
|
||||||
});
|
});
|
||||||
|
from.setTimeout(120000);
|
||||||
from.pipe(to);
|
from.pipe(to);
|
||||||
to.pipe(from);
|
to.pipe(from);
|
||||||
from.on('error', () => {
|
from.on('error', () => {
|
||||||
|
Reference in New Issue
Block a user