public   void    EventHttpConnection::setRetries    (     int     $retries      )

EventHttpConnection::setRetriesSets the retry limit for the connection

retries

The retry limit. -1 means infinity.