Skip Menu |

This queue is for tickets about the CHI-Driver-Redis CPAN distribution.

Report information
The Basics
Id: 106177
Status: open
Priority: 0/
Queue: CHI-Driver-Redis

People
Owner: ianburrell [...] gmail.com
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.09
Fixed in: (no value)



Subject: Exception documention
Would you please document the situation which could lead to an exception "Not connected to any server" to be thrown and give guidance as to how to avoid it and what to do when it happens?
I don't know if this helps, but it seems to happen when I call purge() on the object.
I don't know if this helps, but it seems to happen when I call purge() on the object.
On Fri Jul 31 11:00:05 2015, NHORNE wrote: Show quoted text
> Would you please document the situation which could lead to an > exception "Not connected to any server" to be thrown and give guidance > as to how to avoid it and what to do when it happens?
That exception is thrown by Redis module when the socket is disconnected. My guess is that you are calling the purge() command after a while and the socket has timed out. There is a "reconnect" option to Redis which automatically reconnects and should fix your problem. I'll update the docs so there is a link to Redis module docs. And mention the "reconnect" option. I don't want to duplicate all of its docs.
Ah, that makes sense, thank you for the suggestion. I will take a look at my code.
In the meantime I have disabled the timeout, which was set to 5 minutes, since I don't need it. I'll see if that helps.