Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hangs when reconnect disabled inside transaction #99

Open
vsespb opened this issue Oct 8, 2014 · 1 comment
Open

Hangs when reconnect disabled inside transaction #99

vsespb opened this issue Oct 8, 2014 · 1 comment

Comments

@vsespb
Copy link
Contributor

vsespb commented Oct 8, 2014

Hangs when reconnect disabled inside transaction

use strict;
use warnings;
use Redis;
my $conn = Redis->new(
    reconnect     => 20,
    every         => 1000,
);
while(1){
  eval {
    $conn->multi;
    $conn->set("x" => 42);
    $conn->exec;
  1;
  } or do {
    print $@;
  }
}

prints "reconnect disabled inside transaction or watch" forever if I restart Redis Server

@vsespb
Copy link
Contributor Author

vsespb commented Oct 8, 2014

related #89 #85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant