今天查看 /var/log/php_error.log
抛错如下:
[23-Feb-2024 13:17:34 Asia/Shanghai] PHP Warning: Swoole\Http\Response::header(): http response is unavailable (maybe it has been ended or detached) in ../Listen/Http.php on line 216
[23-Feb-2024 13:17:34 Asia/Shanghai] PHP Warning: Swoole\Http\Response::end(): http response is unavailable (maybe it has been ended or detached) in ../Listen/Http.php on line 218
问题很明显
http response is unavailable (maybe it has been ended or detached
译 : http响应不可用(可能已结束或分离)
http 协议请求回包前 连接找不到 提前在其他位置回包了 或者说 客户端主动断开了.