$address = Store::instance('gateway')->get(''.$client_id);
在保持一段時間鏈接后
這個就獲取不到redis的數(shù)據(jù)
求問walkor 大神這是什么情況
這是日志
2015-11-10 00:28:54 worker exit with status 9
2015-11-10 00:28:54 worker exit with status 9
2015-11-10 00:28:54 worker exit with status 9
2015-11-10 00:28:54 worker exit with status 9
2015-11-10 00:28:54 worker exit with status 9
2015-11-10 00:28:54 worker exit with status 9
2015-11-10 00:28:54 worker exit with status 9
2015-11-10 00:28:54 worker exit with status 9
2015-11-10 00:28:54 worker exit with status 9
2015-11-10 00:28:54 worker exit with status 9
2015-11-10 00:28:54 worker exit with status 9
直接走進(jìn)這里了
if(!$address)
{
echo 'address1:';
var_dump($address);
var_dump('client_id-'.$client_id.'is not exist');
return 0;
}
其他位置獲取還是可以的
public static $order = array(
'127.0.0.1:6379',
);
public static $user = array(
'127.0.0.1:6379',
);
就是'gateway'這個有問題
var_dump($address);
這個輸出是false
$client_id
我看到這個鏈接還在給我的服務(wù)器發(fā)心跳
應(yīng)該是在線的
而且redis也存在這個連接的記錄