diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index c0abf70..74e9454 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.16', + version: '3.0.17', description: 'a proxy for handling high workloads of proxying' } diff --git a/ts/smartproxy.classes.networkproxy.ts b/ts/smartproxy.classes.networkproxy.ts index 6499d2c..91fd6d3 100644 --- a/ts/smartproxy.classes.networkproxy.ts +++ b/ts/smartproxy.classes.networkproxy.ts @@ -209,6 +209,15 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g= response.on('end', () => { res.end(); }); + response.on('error', () => { + res.end(); + }); + response.on('close', () => { + res.end(); + }); + response.on('timeout', () => { + res.end(); + }); } );