Since July 27th 11:19:45 the following code snipplet creates an Exception "read error on connection" every second
Before that date I had those exceptions too, but very few
$redis = new Redis(); $redis->connect('tools-redis', 6379); for(;;) { try { $key = $redis->blpop("jsgsfj1", 3600); if($key !== false) break; } catch (Exception $e) { print date("Y-m-d H:i:s", time()) . " Exception: " . $e->getMessage() . "\n"; // var_dump($e); $key = false; } }
If use this command, there is no such exception
$ redis-cli -h tools-redis BLPOP jsgsfj1 3600
Is there anything wrong with my code snipplet or are these exceptions every second normal behaviour?