🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

tcp-throughput-proxy

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tcp-throughput-proxy

Proxy that allows you to monitor how much incoming trafic it is receiving.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

tcp-throughput-proxy

Proxy that allows you to monitor how much incoming trafic it is receiving.

npm install -g tcp-throughput-proxy

Usage

# start a proxy listening on port 10000 proxing to localhost:20000
tcp-throughput-proxy --from 10000 --to localhost:20000

Optionally if you only want to monitor throughput and not proxy anywhere

# just monitor throughput
tcp-throughput-proxy --from 10000

Then to start monitoring throughput connect to the monitor server. Per default the monitor is listening on the from port + 1. To connect to it simply open a tcp connection to the monitor server

# attach to the monitor server
nc localhost 10001

The monitor server should start printing out stats in the following format

0 open connections
Receiving 0 b/s

If you open up another tcp connection to the proxy server and start writing data you should see the receive speed go up. For example to write a bunch of random data to it do

# pipe a bunch of random data to the proxy
cat /dev/random | nc localhost 10000

After executing the above you should see receive speed in the monitor connection go up

License

MIT

FAQs

Package last updated on 07 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts