From e2dc03145f8340696436029d6d34afa39c38cf76 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 6 Apr 2026 18:54:19 +0530 Subject: [PATCH] Enable coroutine hooks for HTTP server --- app/http.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/http.php b/app/http.php index 7f6faecaa7..7dc893107e 100644 --- a/app/http.php +++ b/app/http.php @@ -7,6 +7,7 @@ $registerRequestResources = require __DIR__ . '/init/resources/request.php'; use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; +use Swoole\Runtime; use Swoole\Table; use Utopia\Audit\Adapter\Database as AdapterDatabase; use Utopia\Audit\Adapter\SQL as AuditAdapterSQL; @@ -34,6 +35,8 @@ use function Swoole\Coroutine\run; $files = new Files(); $files->load(__DIR__ . '/../public'); +Runtime::enableCoroutine(SWOOLE_HOOK_ALL); + $certifiedDomains = new Table(100_000); $certifiedDomains->column('value', Table::TYPE_INT, 1); $certifiedDomains->create();