php-resque-ex icon indicating copy to clipboard operation
php-resque-ex copied to clipboard

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

Open canyousayyes opened this issue 9 years ago • 2 comments
trafficstars

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

canyousayyes avatar Dec 09 '15 03:12 canyousayyes

Connected issue: phpredis/phpredis#429

jaymecd avatar Mar 14 '16 09:03 jaymecd

+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.

quantum-x avatar Mar 25 '16 10:03 quantum-x