4

我想知道使用 httperf 的 connreset 的重要性是什么。测试单个网页时,我没有收到任何错误。使用具有多个页面的简单 .log 文件时,我收到 100% 的 connreset 错误。关于如何克服这个问题的建议?

4

1 回答 1

3

当我自己遇到它时,我最终不得不追踪它。手册页显示以下内容:

connreset: The number of times a TCP connection failed due to a RESET from the
server. Typically, a RESET is received when the client attempts to send data to
the server at a time the server has already closed its end of the connection.
NT servers also send RESETs when attempting to establish a new connection when
the listen queue is full.

为了让我自己的服务器实现停止这样做,我必须禁用服务器端连接关闭。事实证明,服务器关闭连接过于激进。

于 2011-06-27T19:36:50.347 回答