Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache基准测试在简单C服务器中的第一个请求后不继续_C_Http_Benchmarking - Fatal编程技术网

Apache基准测试在简单C服务器中的第一个请求后不继续

Apache基准测试在简单C服务器中的第一个请求后不继续,c,http,benchmarking,C,Http,Benchmarking,我想对C语言的HTTP服务器的“Hello World”性能进行基准测试http://localhost:8000/给出一个输出,但不挂起,Chrome不会打开它</code>ab-c1-n10http://localhost:8000/发出第一个请求,之后不再继续。我尝试在发送数据后关闭客户端套接字,但没有帮助。这是什么原因 我在这里使用了代码:尝试使用\r\n行结尾作为http头。@chris仍然不工作,它挂起在abtry上使用\r\n行结尾作为http头。@chris仍然不工作,它挂起

我想对C语言的HTTP服务器的“Hello World”性能进行基准测试http://localhost:8000/给出一个输出,但不挂起,Chrome不会打开它</code>ab-c1-n10http://localhost:8000/发出第一个请求,之后不再继续。我尝试在发送数据后关闭客户端套接字,但没有帮助。这是什么原因


我在这里使用了代码:

尝试使用\r\n行结尾作为http头。@chris仍然不工作,它挂起在abtry上使用\r\n行结尾作为http头。@chris仍然不工作,它挂起在ab上