Skip to content

Commit 44ea59f

Browse files
author
Nikita Koksharov
committedJan 14, 2019
Fixed - connection is not reconnected #1811
1 parent eb4200d commit 44ea59f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎redisson/src/main/java/org/redisson/client/handler/ConnectionWatchdog.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ public void operationComplete(Future<RedisConnection> future) throws Exception {
133133
refresh(connection, channel);
134134
log.debug("{} connected to {}, command: {}", connection, connection.getRedisClient().getAddr(), connection.getCurrentCommand());
135135
} else {
136-
log.warn("Can't connect " + connection + " to " + connection.getRedisClient().getAddr(), future.cause());
136+
channel.close();
137+
reconnect(connection, nextAttempt);
137138
}
138-
139139
}
140140
});
141141
return;

0 commit comments

Comments
 (0)