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

Problems with long running connections #82

Closed
tarjei opened this issue Jan 29, 2013 · 3 comments
Closed

Problems with long running connections #82

tarjei opened this issue Jan 29, 2013 · 3 comments

Comments

@tarjei
Copy link

tarjei commented Jan 29, 2013

Hi, I'm using SNC Redis with multiple connections - default is for things I care about, while cache is for things that may die.

Now, my problem is that when I use the default connection (blocking on blpop) together with a second connection for the cache, the cache blows up when blpop returns and I start using the cache since the cache connection has timed out.

Should I use connection_persister:true here or is there another parameter I should use ?

@snc
Copy link
Owner

snc commented Feb 16, 2013

I'm not sure if persistent connections help here. Do you have to connect to the cache before running BLPOP?

@cigoe
Copy link

cigoe commented Aug 19, 2014

@tarjei I ran into the same problem but only with phpredis (version 2.2.4), predis works perfectly fine. My temporary workaround for now was to set connection_timeout manually and make sure the blpop commands don't exceed the time integer in the configuration.

@ghost
Copy link

ghost commented Apr 29, 2016

I think this issue can be closed because it is very old and the issue did not occur again for 2-3 years.

@Seldaek Seldaek closed this as completed Apr 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants