stomp-php icon indicating copy to clipboard operation
stomp-php copied to clipboard

Lower default timeout value in constructor

Open josecelano opened this issue 10 years ago • 0 comments

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.

josecelano avatar Feb 25 '15 15:02 josecelano