File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
Revision history for AnyEvent::RipeRedis.
2
2
3
+ 0.46 Tue Dec 5 15:56:58 MSK 2017
4
+ - The client now disconnects if the E_NO_AUTH error was returned.
5
+
3
6
0.44 Fri Dec 1 12:09:02 MSK 2017
4
7
- Made that the client do not reconnects on the error
5
8
"Client sent AUTH, but no password is set".
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use strict;
5
5
use warnings;
6
6
use base qw( Exporter ) ;
7
7
8
- our $VERSION = ' 0.44 ' ;
8
+ our $VERSION = ' 0.46 ' ;
9
9
10
10
use AnyEvent::RipeRedis::Error;
11
11
@@ -753,6 +753,13 @@ sub _process_error {
753
753
return ;
754
754
}
755
755
756
+ if ( $err_code == E_NO_AUTH ) {
757
+ my $err = _new_error( $reply , $err_code );
758
+ $self -> _disconnect($err );
759
+
760
+ return ;
761
+ }
762
+
756
763
if ( $cmd -> {name } eq ' eval_cached'
757
764
&& $err_code == E_NO_SCRIPT )
758
765
{
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use 5.008000;
4
4
use strict;
5
5
use warnings;
6
6
7
- our $VERSION = ' 0.44 ' ;
7
+ our $VERSION = ' 0.46 ' ;
8
8
9
9
our %ERROR_CODES = (
10
10
E_CANT_CONN => 1,
You can’t perform that action at this time.
0 commit comments