Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@applitools/eg-socks5-proxy-server

Package Overview
Dependencies
Maintainers
30
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/eg-socks5-proxy-server - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

2

package.json
{
"name": "@applitools/eg-socks5-proxy-server",
"version": "0.1.5",
"version": "0.1.6",
"description": "",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -18,2 +18,4 @@ const net = require('net')

let handshakeTimeout;
const destination = net.createConnection(port, address, () => {

@@ -29,5 +31,7 @@ // prepare a success response

const handshakeTimeout = setTimeout(()=> {
handshakeTimeout = setTimeout(()=> {
isTimeoutCalled = true
destination.destroy()
proxyServer.onHandshakeTimeout()
isTimeoutCalled = true
}, 10000)

@@ -44,5 +48,2 @@

}
else{
destination.destroy()
}
})

@@ -81,2 +82,4 @@ })

destination.on('error', (err) => {
handshakeTimeout && clearTimeout(handshakeTimeout)
// notify of connection error

@@ -83,0 +86,0 @@ err.addr = args.dst.addr

@@ -271,6 +271,9 @@ const {

}
let retry = 0
proxyServer.onHandshakeTimeout = () => {
self.server.emit(EVENTS.REMOTE_PROXY_HANDSHAKE_TIMEOUT, {originInfo, destinationInfo, proxyServer})
createExecuterAndRegisterToEvents()
retry++
if (retry <= 3) createExecuterAndRegisterToEvents()
else end(RFC_1928_REPLIES.NETWORK_UNREACHABLE, args)
}

@@ -277,0 +280,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc