Skip Menu |

This queue is for tickets about the Cache-Memcached CPAN distribution.

Report information
The Basics
Id: 30294
Status: resolved
Priority: 0/
Queue: Cache-Memcached

People
Owner: Nobody in particular
Requestors: joe.posner [...] gmail.com
Cc:
AdminCc:

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



Subject: Using stats provides bad error reporting when server unreachable
Date: Fri, 26 Oct 2007 16:33:05 -0700
To: bug-Cache-Memcached [...] rt.cpan.org
From: "Joe Posner" <joe.posner [...] gmail.com>
Using Cache-Memcached-1.24 and perl v5.8.4 for i86pc-solaris-64int, a request for stats from a memcached server that does not exist or is unavailable generates a series of "Use of uninitialized value" errors in Memcached.pm; a callback or error code that can be checked would allow scripts to gracefully handle the case when a server is down. The following code illustrates the issue (assuming memcached is not running on 9999). my $memd = Cache::Memcached->new({ servers => ["127.0.0.1:9999" ] }); my $misc_stats = $memd->stats('misc');
Fixed.