Skip Menu |

This queue is for tickets about the AnyEvent-Hiredis CPAN distribution.

Report information
The Basics
Id: 118276
Status: new
Priority: 0/
Queue: AnyEvent-Hiredis

People
Owner: Nobody in particular
Requestors: feroze.chaudhry [...] gmail.com
Cc:
AdminCc:

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



Subject: AnyEvent::Hiredis module crashes the program when Redis is unavailable
Date: Thu, 6 Oct 2016 12:00:14 +0500
To: bug-AnyEvent-Hiredis [...] rt.cpan.org
From: feroze waris <feroze.chaudhry [...] gmail.com>
Hi, I am using AnyEvent::Hiredis module in my perl program to have connectivity with redis. There is a test case when Redis-DB is stoped in that case the constructor i.e AnyEvent::Hiredis->new function still returns the HASH pointer and when through this object i call the command function my program crashes with the following error. *func = authorize exit status= ac does not have a struct associated with it at /usr/local/share/perl5/**AnyEvent/Hiredis.pm line 84*. Is there any way to handle this error. because i am not be able to catch it use any TryCatch module. my specs are *Distribution name and version* : LSB_VERSION=base-4.0-amd64: base-4.0-noarch:core-4.0-amd64:core-4.0-noarch: graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch *perl version* : 5.10.1 *Operating System:* Linux redhan 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux