Change $connect_timeout_seconds and $attempts default values to 10 and 1.
public function __construct ($brokerUri, $opts = array(), $connect_timeout_seconds = 60, $attempts = 10)
In case you have php.ini setting max_execution_time lower than 60 script execution will stop without any usefull info. :-). I think it is better to let the user increase that value.
Change $connect_timeout_seconds and $attempts default values to 10 and 1.
In case you have php.ini
setting max_execution_time
lower than 60 script execution will stop without any usefull info. :-). I think it is better to let the user increase that value.