Skip to content

Commit f68996e

Browse files
committed
Slight improvement
Made that the client do not reconnects on the error "Client sent AUTH, but no password is set".
1 parent 81666ce commit f68996e

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Revision history for AnyEvent::RipeRedis.
22

3+
0.44 Fri Dec 1 12:09:02 MSK 2017
4+
- Made that the client do not reconnects on the error
5+
"Client sent AUTH, but no password is set".
6+
37
0.42 Sat Apr 1 15:49:15 MSK 2017
48
- README.pod replaced by README.md.
59

lib/AnyEvent/RipeRedis.pm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use strict;
55
use warnings;
66
use base qw( Exporter );
77

8-
our $VERSION = '0.42';
8+
our $VERSION = '0.44';
99

1010
use AnyEvent::RipeRedis::Error;
1111

@@ -646,7 +646,9 @@ sub _auth {
646646
on_reply => sub {
647647
my $err = $_[1];
648648

649-
if ( defined $err ) {
649+
if ( defined $err
650+
&& $err->message ne 'ERR Client sent AUTH, but no password is set' )
651+
{
650652
$self->{_auth_state} = S_NEED_DO;
651653
$self->_abort($err);
652654

lib/AnyEvent/RipeRedis/Error.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use 5.008000;
44
use strict;
55
use warnings;
66

7-
our $VERSION = '0.42';
7+
our $VERSION = '0.44';
88

99
our %ERROR_CODES = (
1010
E_CANT_CONN => 1,

0 commit comments

Comments
 (0)