PHP - Manual: SphinxClient::setConnectTimeout
2024-12-23
(PECL sphinx >= 0.1.0)
SphinxClient::setConnectTimeout — Set connection timeout
$timeout
) : boolSets connection timeout (in seconds) for searchd connection.
timeout
Timeout in seconds.
成功时返回 TRUE
, 或者在失败时返回 FALSE
。
官方地址:https://www.php.net/manual/en/sphinxclient.setconnecttimeout.php