OpenSwoole Hook TLS

25.x is outdated, please check the latest version 26.x


Latest version: pecl install openswoole-26.2.0

The OpenSwoole\Runtime::HOOK_TLS flag will enable coroutine support for TLS sockets and streams. Support was added in OpenSwoole v4.2.0.

Example

<?php

Co::set(['hook_flags' => OpenSwoole\Runtime::HOOK_TLS]);
Last updated on February 28, 2026