Skip to content

Commit a5b70a5

Browse files
author
Allen Torres
committed
Added a sleep call for a second before establishing another connection.
1 parent 0afb876 commit a5b70a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Redisent/Redisent.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ function __call($name, $args) {
8888
throw new Exception('Failed to write entire command to stream');
8989
}else{
9090
fclose($this->__sock);
91+
sleep(1);
9192
$this->establishConnection();
9293
$reconnects++;
9394
}

0 commit comments

Comments
 (0)