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-beta to 0.2.0-debug

2

package.json
{
"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

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