2

I want to benchmark the "Hello World" performance of a HTTP server made in C. Despite the curl -v http://localhost:8000/ gives an output and does not hang, Chrome does not open it an ab -c 1 -n 10 http://localhost:8000/ makes the first request and does not continue after. I tried closing the client socket after sending data but it did not help. What is the cause of this?

I have used the code here: Send HTTP response using C socket

Community
  • 1
  • 1
Mustafa
  • 10,013
  • 10
  • 70
  • 116

0 Answers0