You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have modified my own running code to implement this correctly, based on the 1.0.0 version.
The missing functions are: setConnectTimeout and setMaxAttempts
I added the following code after setReadTimeout:
/**
* Set timeout to wait for connection
*
* @param int $seconds_to_wait Seconds to wait for connection
*/
public function setConnectTimeout($seconds) {
$this->_connect_timeout_seconds = $seconds;
}
/**
* Set maximum connect attempts
*/
public function setMaxAttempts($max) {
$this->_attempts = $max;
}
setConnectTimeout allows to set an explicit connect timeout, instead of using the default 60 seconds.
setMaxAttempts allows to explicitly set the amounts of attempts to perform, instead of the default 10.
Reason:
When adding CRUD operations using ActiveMQ, the CouchDB server might at times be very busy. To make sure that messages from the queue are handles quickly, we set the connect timeout to 1 second, and the max attempts to 1. This ensures the queue won't fall behind in message handling.
Besides the above, each obvious field can be set except these two :)
With kind regards,
Rory Slegtenhorst
The text was updated successfully, but these errors were encountered:
Hi,
This is a feature request.
I have modified my own running code to implement this correctly, based on the 1.0.0 version.
The missing functions are: setConnectTimeout and setMaxAttempts
I added the following code after setReadTimeout:
setConnectTimeout allows to set an explicit connect timeout, instead of using the default 60 seconds.
setMaxAttempts allows to explicitly set the amounts of attempts to perform, instead of the default 10.
Reason:
When adding CRUD operations using ActiveMQ, the CouchDB server might at times be very busy. To make sure that messages from the queue are handles quickly, we set the connect timeout to 1 second, and the max attempts to 1. This ensures the queue won't fall behind in message handling.
Besides the above, each obvious field can be set except these two :)
With kind regards,
Rory Slegtenhorst
The text was updated successfully, but these errors were encountered: