Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ideawu/c1000k
A tool to test if your OS supports 1 million connections(c1000k/c1m)
https://github.com/ideawu/c1000k
Last synced: 9 days ago
JSON representation
A tool to test if your OS supports 1 million connections(c1000k/c1m)
- Host: GitHub
- URL: https://github.com/ideawu/c1000k
- Owner: ideawu
- Created: 2014-02-07T02:34:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-10-15T04:14:27.000Z (about 4 years ago)
- Last Synced: 2024-10-11T23:14:52.158Z (24 days ago)
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 601
- Watchers: 36
- Forks: 169
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- my-awesome - ideawu/c1000k - 10 star:0.6k fork:0.2k A tool to test if your OS supports 1 million connections(c1000k/c1m) (C)
README
c1000k
======This is the TCP server-client suit to help you test if your OS supports c1000k(1 million connections).
## Usage
### Download and compile
wget --no-check-certificate https://github.com/ideawu/c1000k/archive/master.zip
unzip master.zip
cd c1000k-master
make### start the server, listen on port 7000~7099
./server 7000
### run the client
./client 127.0.0.1 7000
The server will ouput message like this and quit:
connections: 153
error: Too many open filesIt says the server can only accept 153 connections, it reaches the max-open-files limitation so it quit.
The client will output message like this:
connections: 154
error: Connection refused