A HTTP server written in C for Apache HTTP server benchmarking tool.
To build and run, enter the following commands.
cd cs2
make
./a.out 22421 # Specify a port number.
Then, benchmark with ab
.
ab -c 5 -n 20 localhost:22421/ # 5 client, 20 request.
You can use telnet
to verify this server is working fine. The body of the response will be the request message you typed.
telnet localhost 22421