OpenSwoole\Coroutine\Http2\Client->ping()

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


Latest version: pecl install openswoole-26.2.0

Declaration

<?php OpenSwoole\Coroutine\Http2\Client->ping(): bool

Parameters

None

Return

Returns true when the ping is successful and false when the ping fails.


Description

The ping frame is a mechanism for measuring the minimum round-trip time from the sender and determining whether an idle connection is still valid or not.

For more information on the implementation of ping frames, see the HTTP/2 Ping Frame RFC document.

Last updated on February 28, 2026