dejanb / stomp-php

Stomp PHP Client
http://stomp.fusesource.org/documentation/php/
93 stars 46 forks source link

Lower default timeout value in constructor #35

Open josecelano opened 9 years ago

josecelano commented 9 years ago

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.