-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #498 - Add read_timeout connection option to phpredis #499
Conversation
@agus-k Could you let me know if it's ok for you please? |
I'm getting [RedisException]:Redis server went away on the setOption line for some reason. I'm using phpredis v3.1.6. What version are you using? |
Same version. Do you have the same behavior with |
|
@agus-k So when does this error occured in your workflow? Any stack trace? |
), | ||
'alias_test' | ||
); | ||
|
||
$this->assertInstanceOf('\Snc\RedisBundle\Client\Phpredis\Client', $client); | ||
$this->assertSame('toto', $client->getOption(\Redis::OPT_PREFIX)); | ||
$this->assertSame(1, $client->getOption(\Redis::OPT_SERIALIZER)); | ||
$this->assertSame(4., $client->getOption(\Redis::OPT_READ_TIMEOUT)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the dot after 4?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To say it's a float and not an int. Without the dot, the test failed because it returns a float.
This option is a float in the doc of phpredis.
My bad, it was my mistake in a hurry. I double checked after pulling your commit. It works on my end. I'll close my PR. Thank you for the fix. |
@agus-k Nice, thanks for letting us know! |
fix #498