src/Leevel/Protocol/HttpServer.php
public function onHttpClose(SwooleHttpServer $server, int $fd, int $reactorId): void
    {
        $this->log(
            sprintf(
                'Server close, fd %d, reactorId %d.',
                $fd, $reactorId
            )
        );
    }
public function onHttpClose(SwooleHttpServer $server, int $fd, int $reactorId): void
    {
        $this->log(
            sprintf(
                'Server close, fd %d, reactorId %d.',
                $fd, $reactorId
            )
        );
    }
监听连接关闭事件
每个浏览器连接关闭时执行一次, reload 时连接不会断开, 也就不会触发该事件.

@param \Swoole\Http\Server $server
@param int                 $fd
@param int                 $reactorId

@see https://wiki.swoole.com/wiki/page/p-event/onClose.html