@applitools/eg-socks5-proxy-server
Advanced tools
Comparing version 0.2.0-debug to 0.2.0-debug-2
{ | ||
"name": "@applitools/eg-socks5-proxy-server", | ||
"version": "0.2.0-debug", | ||
"version": "0.2.0-debug-2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -18,2 +18,3 @@ module.exports = { | ||
REMOTE_PROXY_DATA_TIMEOUT: 'remote-proxy-data-timeout', | ||
REMOTE_PROXY_ORIGIN_DATA_TIMEOUT: 'remote-proxy-origin-data-timeout', | ||
@@ -20,0 +21,0 @@ ORIGIN_SOCKET_ERROR: 'orgin-socket-error', |
@@ -44,2 +44,4 @@ const net = require('net') | ||
const dataTimeoutId = setTimeout(() => proxyServer.onDataTimeout(), 5000) | ||
const dataTimeoutId2 = setTimeout(() => proxyServer.onOriginDataTimeout(), 5000) | ||
originalSocket.once('data', () => clearTimeout(dataTimeoutId2)) | ||
destination.once('data', () => clearTimeout(dataTimeoutId)) | ||
@@ -46,0 +48,0 @@ |
@@ -309,2 +309,9 @@ const { | ||
proxyServer.onOriginDataTimeout = () => { | ||
self.server.emit(EVENTS.REMOTE_PROXY_ORIGIN_DATA_TIMEOUT, { | ||
originInfo, | ||
destinationInfo, | ||
proxyInfo, | ||
}) | ||
destination = executeRequestThroughRemoteProxy({ | ||
@@ -311,0 +318,0 @@ originalSocket: socket, |
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
25411
669
209547