Giter Site home page Giter Site logo

Limit number of connections about wstunnel HOT 2 CLOSED

erebe avatar erebe commented on August 11, 2024
Limit number of connections

from wstunnel.

Comments (2)

erebe avatar erebe commented on August 11, 2024

Hello,
There is no limit regarding the number of connections.
But by default on Linux there is a limit of the maximum of number of file descriptor a process can open at the same time. This limit is by default 1024, which would explains your limit of ~500 connections as wstunnel open 2 file descriptors for every in-coming connections.

To get your current limit just do in a shell a ulimit -a and look at the line
Maximum number of open file descriptors (-n) 1024
to get your current maximum.

to increase the limit just do a ulimit -n 999999 as root in the shell where you launch wstunnel (server and client)

You can try with this setup, run each command in a dedicated shell
sudo -i; ulimit -n 999999; wstunnel --server ws://127.0.0.1:1110
sudo -i; ulimit -n 999999; wstunnel -L 1111:127.0.0.1:1112 ws://localhost:1110
sudo -i; ulimit -n 999999; python2 -m SimpleHTTPServer 1112

and use wrk to inject http request :
sudo -i; ulimit -n 999999; wrk -t10 -c1000 http://127.0.0.1:1111
and you can see that there is no error with the connections.

from wstunnel.

erebe avatar erebe commented on August 11, 2024

closing as no answer

from wstunnel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.