Skip to content
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

Merged
merged 1 commit into from
Feb 20, 2019

Conversation

B-Galati
Copy link
Collaborator

@B-Galati B-Galati commented Feb 19, 2019

fix #498

@B-Galati B-Galati added the bug Not working as intended label Feb 19, 2019
@B-Galati B-Galati self-assigned this Feb 19, 2019
@B-Galati B-Galati requested a review from curry684 February 19, 2019 08:14
@B-Galati
Copy link
Collaborator Author

@agus-k Could you let me know if it's ok for you please?

@agus-k
Copy link

agus-k commented Feb 19, 2019

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?

@B-Galati
Copy link
Collaborator Author

B-Galati commented Feb 19, 2019

Same version. Do you have the same behavior with bin/console -vn redis:flushall?

@agus-k
Copy link

agus-k commented Feb 19, 2019

bin/console -vn redis:flushall looks OK on my end.

@B-Galati
Copy link
Collaborator Author

@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));

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?

Copy link
Collaborator Author

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.

@agus-k
Copy link

agus-k commented Feb 19, 2019

@agus-k So when does this error occured in your workflow? Any stack trace?

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.

@B-Galati
Copy link
Collaborator Author

@agus-k Nice, thanks for letting us know!

@B-Galati B-Galati merged commit af3ac96 into snc:2.1 Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants