# EventHttpConnection::setRetries

(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.

### 返回值

没有返回值。

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open