1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Improved reconnect logic. Initial version of reconnect thresholds.

This commit is contained in:
Matt Ranney
2011-11-10 12:58:51 -10:00
parent 8e338c6136
commit c74657cdfa
3 changed files with 123 additions and 105 deletions

View File

@@ -348,7 +348,7 @@ tests.reconnect = function () {
// For orderly shutdown in normal programs, do client.quit()
client.stream.destroy();
});
client.on("reconnecting", function on_recon(params) {
client.on("connect", function on_connect() {
client.select(test_db_num, require_string("OK", name));
@@ -1233,7 +1233,7 @@ client3.on("error", function (err) {
});
client.on("reconnecting", function (params) {
// console.log("reconnecting: " + util.inspect(params));
console.log("reconnecting: " + util.inspect(params));
});
process.on('uncaughtException', function (err) {