Closed wildsurfer closed 10 years ago
You could try increasing the timeout value on Redis side
@kamisama
From the redis official documentation:
Client timeouts By default recent versions of Redis don't close the connection with the client if the client is idle for many seconds: the connection will remain open forever.
What library are you using ? Credis or phpredis ?
@kamisama phpredis 2.2.3
I don't a solution for this yet.
Using pconnect
instead of connect
didn't help.
@kamisama, thanks for help! Can you point me to the place in code where this exception rises? I will check if I can patch it quickly.
I'm not really sure, as it's been a long time since my last commit, I'm not so familiar with the project anymore.
The only patch you can do is caught the exception. There is no way to reconnect the lost connection.
@kamisama I see, 10x anyway!
@wildsurfer this error is from the library: https://github.com/nicolasff/phpredis/blob/master/README.markdown#class-redisexception
I'm experiencing issue on my production server. Sometimes process unexpectedly dies with this message:
Actually the issue is obvious but I need some way to increase timeout or to force it to try again