Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Potential 'read error on connection' problem due to pconnect() #41

Open
canyousayyes opened this issue Dec 9, 2015 · 2 comments
Open

Comments

@canyousayyes
Copy link

Hello,

I found that our server sometimes throw the exception read error on connection.
We are using with phpredis.

The issue also happens in the vanilla phpredis and they have a long issue discussing that.
The owner suggests that changing the connection from pconnect to connect could help.
Reference: phpredis/phpredis#70 (comment)

Checking the source code I found that this library is using pconnect. Can this be configurable?
(e.g. accept parameters on choosing between pconnect or connect)

Thanks you,
Gene

@jaymecd
Copy link

jaymecd commented Mar 14, 2016

Connected issue: phpredis/phpredis#429

@quantum-x
Copy link

+1 for this - we are seeing frequent 'read error on connection'. There's no traffic to our redis server at all - it's only used for CakePhp.Resque - so it seems for us it's a timeout issue.
You get the error once, and then everything works as expected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants