質問

私は http://github.com/nrk/predis/でPHP(predisでのRedisを使用していますの)と頻繁にタイムアウトを経験しています。スタックトレースを示します:

[04-Apr-2010 03:39:50] PHP Fatal error:  Uncaught exception 'Predis_ClientException' with message 'Connection timed out' in redis.php:697
Stack trace:
#0 redis.php(757): Predis_Connection->connect()
#1 redis.php(729): Predis_Connection->getSocket()
#2 redis.php(825): Predis_Connection->writeCommand(Object(Predis_Commands_ListRange))
#3 redis.php(165): Predis_ConnectionCluster->writeCommand(Object(Predis_Commands_ListRange))
#4 redis.php(173): Predis_Client->executeCommandInternal(Object(Predis_ConnectionCluster), Object(Predis_Commands_ListRange))
#5 redis.php(157): Predis_Client->executeCommand(Object(Predis_Commands_ListRange))
#6 [internal function]: Predis_Client->__call('lrange', Array)

これは、一貫起こると私は理由はわかりません。誰もが任意のアイデアを持って?

役に立ちましたか?

解決

私は、これが原因でRedisのことで、デフォルトで閉じられて得ているアイドル状態の接続のだと思います。

redis.conf

# Close the connection after a client is idle for N seconds (0 to disable)
timeout 0

他のヒント

の未確認のバグがありますRedisの問題のリストには、最新バージョンへのRedisを更新しようとすると、問題の解決しない場合は参照してください。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top