@applitools/eg-socks5-proxy-server
Advanced tools
Comparing version 0.2.0-beta to 0.2.0-debug
{ | ||
"name": "@applitools/eg-socks5-proxy-server", | ||
"version": "0.2.0-beta", | ||
"version": "0.2.0-debug", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -17,2 +17,3 @@ module.exports = { | ||
REMOTE_PROXY_HANDSHAKE_TIMEOUT: 'remote-proxy-handshake-timeout', | ||
REMOTE_PROXY_DATA_TIMEOUT: 'remote-proxy-data-timeout', | ||
@@ -19,0 +20,0 @@ ORIGIN_SOCKET_ERROR: 'orgin-socket-error', |
@@ -43,2 +43,5 @@ const net = require('net') | ||
const dataTimeoutId = setTimeout(() => proxyServer.onDataTimeout(), 5000) | ||
destination.once('data', () => clearTimeout(dataTimeoutId)) | ||
destination.write(args.requestBuffer, () => { | ||
@@ -45,0 +48,0 @@ destination.pipe(originalSocket) |
@@ -301,2 +301,10 @@ const { | ||
proxyServer.onDataTimeout = () => { | ||
self.server.emit(EVENTS.REMOTE_PROXY_DATA_TIMEOUT, { | ||
originInfo, | ||
destinationInfo, | ||
proxyInfo, | ||
}) | ||
} | ||
destination = executeRequestThroughRemoteProxy({ | ||
@@ -313,3 +321,3 @@ originalSocket: socket, | ||
self.destinationSockets.push(destinationSocket) | ||
self.destinationSockets.push(destination) | ||
} | ||
@@ -397,3 +405,4 @@ | ||
close = (...args) => this.server.close(...args) | ||
getConnections = (...args) => this.server.getConnections(...args) | ||
setProxyServer = (proxyServer) => { | ||
@@ -400,0 +409,0 @@ this.options.proxyServer = proxyServer |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
24894
660
3