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.2.0-debug-7 to 0.2.0-debug-8

2

package.json
{
"name": "@applitools/eg-socks5-proxy-server",
"version": "0.2.0-debug-7",
"version": "0.2.0-debug-8",
"description": "",

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

@@ -43,7 +43,17 @@ const net = require('net')

const dataTimeoutId = setTimeout(() => {
const writeAcknowledgementToClient = (data) =>
originalSocket.write(data, () => {
destination.pipe(originalSocket)
originalSocket.pipe(destination)
})
let doesnotGetAcknowledgement = false
const acknowledgementTimeoutId = setTimeout(() => {
doesnotGetAcknowledgement = true
proxyServer.onDataTimeout()
end(originalSocket, RFC_1928_REPLIES.NETWORK_UNREACHABLE, args)
destination.destroy()
}, 10000)
writeAcknowledgementToClient(responseBuffer)
// end(originalSocket, RFC_1928_REPLIES.NETWORK_UNREACHABLE, args)
// destination.destroy()
}, 5000)

@@ -53,7 +63,6 @@ // first buffer after handshake

destination.once('data', (data) => {
originalSocket.once('data', () => clearTimeout(dataTimeoutId))
originalSocket.write(data, () => {
originalSocket.pipe(destination)
destination.pipe(originalSocket)
})
if (doesnotGetAcknowledgement) return
clearTimeout(acknowledgementTimeoutId)
writeAcknowledgementToClient(data)
})

@@ -60,0 +69,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