mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
Added a sleep call for a second before establishing another connection.
This commit is contained in:
parent
0afb87663f
commit
a5b70a5cbd
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ class Redisent {
|
||||||
throw new Exception('Failed to write entire command to stream');
|
throw new Exception('Failed to write entire command to stream');
|
||||||
}else{
|
}else{
|
||||||
fclose($this->__sock);
|
fclose($this->__sock);
|
||||||
|
sleep(1);
|
||||||
$this->establishConnection();
|
$this->establishConnection();
|
||||||
$reconnects++;
|
$reconnects++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue