diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 8652f06..9f90640 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartproxy', - version: '3.0.30', + version: '3.0.31', description: 'a proxy for handling high workloads of proxying' } diff --git a/ts/smartproxy.classes.networkproxy.ts b/ts/smartproxy.classes.networkproxy.ts index a4eb4a5..bef7534 100644 --- a/ts/smartproxy.classes.networkproxy.ts +++ b/ts/smartproxy.classes.networkproxy.ts @@ -200,6 +200,7 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g= request.end(); }); req.on('timeout', () => { + req.destroy(); request.end(); }) } @@ -226,6 +227,7 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g= }); response.on('timeout', () => { res.end(); + res.destroy() }); }