(PECL event >= 1.2.6-beta)
EventHttpConnection::setRetries — Sets the retry limit for the connection
public EventHttpConnection::setRetries ( int $retries ) : void
Sets the retry limit for the connection
retries  The retry limit. -1 means infinity. 
No value is returned.
    © 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
    https://www.php.net/manual/en/eventhttpconnection.setretries.php