You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to ask about the number of connections that wstunnel can keep at a same time (for the server side).
I have done some tests and the result shows that it could hold around 500 connections.
Is there a limit in the number of connections that 1 process of wstunnel can hold? Is it set anywhere in the code?
Thanks
The text was updated successfully, but these errors were encountered:
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.
Hello,
I would like to ask about the number of connections that wstunnel can keep at a same time (for the server side).
I have done some tests and the result shows that it could hold around 500 connections.
Is there a limit in the number of connections that 1 process of wstunnel can hold? Is it set anywhere in the code?
Thanks
The text was updated successfully, but these errors were encountered: