proxy-chain
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -90,6 +90,11 @@ 'use strict'; | ||
// relinquish control of the `socket` from the ServerResponse instance | ||
// It can happen that this.close() it called in the meanwhile, so this.srcSocket becomes null | ||
// and the detachSocket() call below fails with "Cannot read property '_httpMessage' of null" | ||
// See https://github.com/apifytech/proxy-chain/issues/63 | ||
if (this.isClosed) return; | ||
// Relinquish control of the `socket` from the ServerResponse instance | ||
this.srcResponse.detachSocket(this.srcSocket); | ||
// nullify the ServerResponse object, so that it can be cleaned | ||
// Nullify the ServerResponse object, so that it can be cleaned | ||
// up before this socket proxying is completed | ||
@@ -96,0 +101,0 @@ this.srcResponse = null; |
@@ -66,2 +66,7 @@ 'use strict'; | ||
// It can happen that this.close() it called in the meanwhile, so this.srcSocket becomes null | ||
// and the detachSocket() call below fails with "Cannot read property '_httpMessage' of null" | ||
// See https://github.com/apifytech/proxy-chain/issues/63 | ||
if (this.isClosed) return; | ||
// Relinquish control of the socket from the ServerResponse instance | ||
@@ -68,0 +73,0 @@ this.srcResponse.detachSocket(this.srcSocket); |
@@ -0,1 +1,6 @@ | ||
0.4.3 / 2020-03-08 | ||
=================== | ||
- Fixed unhandled `TypeError: Cannot read property '_httpMessage' of null` exception | ||
in `HandlerTunnelChain.onTrgRequestConnect` (see Issue [#63](https://github.com/apifytech/proxy-chain/issues/63)) | ||
0.4.2 / 2020-02-28 | ||
@@ -2,0 +7,0 @@ =================== |
{ | ||
"name": "proxy-chain", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Node.js implementation of a proxy server (think Squid) with support for SSL, authentication, upstream proxy chaining, and protocol tunneling.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128084
1894