From 5a81560605bc1ccfdb07c8e63cb60ed2b8115904 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 6 Apr 2026 12:04:23 +0530 Subject: [PATCH] Fix coroutine HTTP startup --- app/http.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/http.php b/app/http.php index 17b2d693d5..360d21eb12 100644 --- a/app/http.php +++ b/app/http.php @@ -553,4 +553,6 @@ $swooleAdapter->onRequest(function ($utopiaRequest, $utopiaResponse) use ($files } }); -$swooleAdapter->start(); +\Swoole\Coroutine\run(static function () use ($swooleAdapter): void { + $swooleAdapter->start(); +});