array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'eventhttpconnection.settimeout.php', 1 => 'EventHttpConnection::setTimeout', 2 => 'Sets the timeout for the connection', ), 'up' => array ( 0 => 'class.eventhttpconnection.php', 1 => 'EventHttpConnection', ), 'prev' => array ( 0 => 'eventhttpconnection.setretries.php', 1 => 'EventHttpConnection::setRetries', ), 'next' => array ( 0 => 'class.eventhttprequest.php', 1 => 'EventHttpRequest', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventhttpconnection/settimeout.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

EventHttpConnection::setTimeout

(PECL event >= 1.2.6-beta)

EventHttpConnection::setTimeoutSets the timeout for the connection

说明

public EventHttpConnection::setTimeout( int $timeout ): void

Sets the timeout for the connection

参数

timeout

Timeout in seconds.

返回值

没有返回值。