Comments (2)
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.
closing as no answer
from wstunnel.
Related Issues (20)
- 100 cpu usage HOT 1
- docker documentation HOT 1
- if application support that allow LAN connection ? HOT 1
- Build In Centos 32bits Machine HOT 2
- windows11系统下输入CMD命令报错,见下图
- add http/https proxy Options HOT 2
- Found a DNS leak problem HOT 5
- Couldn’t connect with my OpenVPN or Asterisk Server HOT 2
- test
- Short description of the issue
- test HOT 1
- test
- fsdfdsfdfsdf
- test HOT 1
- [Feature Request] Add Authentication Support for SOCKS Service in wstunnel Client HOT 12
- Auto-generate remote port HOT 1
- Need help to setup for android HOT 1
- Need help for android HOT 7
- Binding Apache with wstunnel server HOT 2
- Please increase version support for the Openwrt system platform in wstunnel. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wstunnel.