@applitools/eg-socks5-proxy-server
Advanced tools
Comparing version 0.2.0-debug-4 to 0.2.0-debug-5
{ | ||
"name": "@applitools/eg-socks5-proxy-server", | ||
"version": "0.2.0-debug-4", | ||
"version": "0.2.0-debug-5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -44,3 +44,8 @@ const net = require('net') | ||
const dataTimeoutId = setTimeout(() => proxyServer.onDataTimeout(), 5000) | ||
const dataTimeoutId2 = setTimeout(() => proxyServer.onOriginDataTimeout(), 5000) | ||
const dataTimeoutId2 = setTimeout(() => { | ||
destination.destroy() | ||
end(originalSocket, RFC_1928_REPLIES.NETWORK_UNREACHABLE, args) | ||
proxyServer.onOriginDataTimeout() | ||
}, 5000) | ||
originalSocket.once('data', () => clearTimeout(dataTimeoutId2)) | ||
@@ -47,0 +52,0 @@ destination.once('data', () => clearTimeout(dataTimeoutId)) |
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
25582
674