Skip Menu |

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

Report information
The Basics
Id: 115255
Status: new
Priority: 0/
Queue: Redis-Client

People
Owner: Nobody in particular
Requestors: dimitri.pekarovsky [...] gmail.com
Cc:
AdminCc:

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



Subject: It dies when ping after timeout
Date: Sat, 11 Jun 2016 07:21:40 +0200
To: bug-Redis-Client [...] rt.cpan.org
From: ДП <dimitri.pekarovsky [...] gmail.com>
Hi, Mike That code perl -we'use Redis::Client; my $r=Redis::Client->new( sock => "/var/run/redis/redis.socket" ); print "1:",$r->ping,"\n"; sleep 60; print "2:",$r->ping,"\n"; ' gave me: 1:PONG Can't read from socket at /usr/share/perl5/site_perl/Redis/Client/Role/URP.pm line 74, <GEN0> line 1. I think there must be reconnect rather than die? Or at least "return 0;" I mean ping is used typically like that: $redis = redis_connect() unless $redis->ping; is'nt it? //Dimitri