We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
httpserver_test
我在 ARM 64bits 主机上编译了 muduo,并运行 bin 目录下的 httpserver_test,用压力测试工具 webbench (来自 https://github.com/linyacool/WebBench ),进行压力测试。在 webbench 测试结束时,httpserver_test 有 ERROR 日志输出。
bin
webbench
为了方便测试,我注释掉了 muduo/net/http/tests/HttpServer_test.cc 第 18 行的 cout 输出语句。
muduo/net/http/tests/HttpServer_test.cc
cout
The text was updated successfully, but these errors were encountered:
我觉得这可能是你用的 webbench 的问题,这些 ERROR 消息说明 server 想发数据发不出去。 按照 HTTP 协议,应该是 server 发完 response 数据之后主动关闭连接,但是你用的 webbench 却在发完 request 之后立即自己把连接 shutdown 了。 https://github.com/linyacool/WebBench/blob/master/webbench.c#L540
你可以换别的常用测试工具再试一下,例如 ab。
Sorry, something went wrong.
好的,谢谢。我换了 ab 来压测,是正常的。
No branches or pull requests
httpserver_test
压力测试过程中出现 ERROR 报错我在 ARM 64bits 主机上编译了 muduo,并运行
bin
目录下的httpserver_test
,用压力测试工具webbench
(来自 https://github.com/linyacool/WebBench ),进行压力测试。在webbench
测试结束时,httpserver_test
有 ERROR 日志输出。为了方便测试,我注释掉了
muduo/net/http/tests/HttpServer_test.cc
第 18 行的cout
输出语句。httpserver_test
启动命令webbench
启动命令webbench
压测结束时httpserver_test
的报错Linux distro and version? x86 or ARM? 32-bit or 64-bit?
Branch (cpp98/cpp11/cpp17) and version of muduo?
Version of cmake, gcc and boost? (If not from distro.)
The text was updated successfully, but these errors were encountered: