I'm creating a redis connection using phpredis client
$redis = new Redis();
$redis->pconnect(loclahost, 6336, 2) ;
$redis->select(15);
Now I used the $redis object inside an infinite loop.
while(true){
///using redis connection object.
}
Around 54 such individual processes were running but once or twice in a day I get an error like "read error on connection".
Please help me to fix it.