Karp 的技术博客

今天查看 /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 协议请求回包前 连接找不到 提前在其他位置回包了 或者说 客户端主动断开了.

swoole

版权属于:karp
作品采用:本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
更新于: 2024年10月21日 12:00
3

目录

来自 《[踩坑] Swoole . http response is unavailable (maybe it has been ended or detached)》