php-resque-ex
php-resque-ex copied to clipboard
Potential 'read error on connection' problem due to pconnect()
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: https://github.com/phpredis/phpredis/issues/70#issuecomment-19238039
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
Connected issue: phpredis/phpredis#429
+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.