src/Leevel/Protocol/HttpServer.php
protected function createServer(): void
    {
        unset($this->option['task_worker_num']);

        $this->server = new SwooleHttpServer(
            $this->option['host'],
            (int) ($this->option['port'])
        );

        $this->initServer();

        // 删除容器中注册为 -1 的数据
        $this->removeCoroutine();
    }
protected function createServer(): void
    {
        unset($this->option['task_worker_num']);

        $this->server = new SwooleHttpServer(
            $this->option['host'],
            (int) ($this->option['port'])
        );

        $this->initServer();

        // 删除容器中注册为 -1 的数据
        $this->removeCoroutine();
    }
创建 http server.