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
Description
add parameters for reconnecting in case of error:
retries
repeat interval
Example
AbstractConnection::connect
//parameters added via the constructor
$this->retries = 5; //The number of times the content should be retried when a connection failure occurs.
$this->retryInterval = 100000; //The retry interval in microseconds to wait between retry.
if ($this->retries > 0) {
$tries = $this->retries;
while ($tries-- > 0) {
try {
$this->io->connect();
break;
} catch (AMQPIOException $e) {
if ($this->retryInterval > 0) {
usleep($this->retryInterval);
}
}
}
} else {
$this->io->connect();
}
This discussion was converted from issue #1138 on November 04, 2023 15:12.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
add parameters for reconnecting in case of error:
Example
AbstractConnection::connect
Beta Was this translation helpful? Give feedback.
All reactions