PHP Swoole 通知 ERRNO 1005

PHP Swoole Notice ERRNO 1005

当 Swoole 处于高负载和高请求时,我不断收到此日志:

[2021-01-24 16:07:22 *33833.2] NOTICE finish (ERRNO 1005): session#21022 does not exists
[2021-01-24 16:07:22 *33833.2] NOTICE finish (ERRNO 1005): session#21022 does not exists
[2021-01-24 16:07:22 *33833.2] NOTICE finish (ERRNO 1005): session#21022 does not exists
[2021-01-24 16:07:22 *33833.2] NOTICE finish (ERRNO 1005): session#21022 does not exists
[2021-01-24 16:07:39 *33835.4] NOTICE finish (ERRNO 1005): session#21025 does not exists
[2021-01-24 16:07:39 *33835.4] NOTICE finish (ERRNO 1005): session#21025 does not exists
[2021-01-24 16:07:39 *33835.4] NOTICE end (ERRNO 1005): session[21025] is closed


或者

[2021-01-23 14:07:22 *5300.3] NOTICE php_swoole_http_onReceive (ERRNO 1005): session[10002] is closed
[2021-01-23 14:07:22 *5300.3] NOTICE php_swoole_http_onReceive (ERRNO 1005): session[10042] is closed
[2021-01-23 14:08:21 *5326.29] NOTICE php_swoole_http_onReceive (ERRNO 1005): session[10508] is closed
[2021-01-23 14:18:15 *5333.36] NOTICE finish (ERRNO 1005): session#12755 does not exists
[2021-01-23 14:18:15 *5333.36] NOTICE end (ERRNO 1005): session[12755] is closed

在示例中,我发送了总共 500k 个请求和 1k 个并发请求,它记录了这个错误并挂起! 突然挂起!
我的服务器是Centos 7,内存8G,4核CPU.
Swoole 是 运行 40 个 worker,+ 30 个 Master-Worker 和 8 个 Reactor。
即使在生产中也会发生这种情况。
有人可以帮助我或解释为什么会发生这种情况,也许我该如何解决?
谢谢

好的,我找到问题所在了。实际上这不是 Swoole 或我的应用程序中的错误。这是一个通知日志,可以通过 Swoole 服务器配置的 log_level 属性 禁用。 当客户端关闭 swoole 选项卡或浏览器(关闭客户端连接)时会发生这种情况,因此它会断开连接,因此 Swoole 无法检索用户会话并记录此通知。 此外,如果您使用基准测试工具,如 Apache ab 或 WRK,如果出现问题,这些测试人员将终止所有其他请求并停止整个测试。因此会话关闭并再次写入日志。