Added a sleep call for a second before establishing another connection.

This commit is contained in:
Allen Torres 2012-12-28 10:39:34 -05:00
parent 0afb87663f
commit a5b70a5cbd

View File

@ -88,6 +88,7 @@ class Redisent {
throw new Exception('Failed to write entire command to stream');
}else{
fclose($this->__sock);
sleep(1);
$this->establishConnection();
$reconnects++;
}