You've already forked node-redis
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:
4
test.js
4
test.js
@@ -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) {
|
||||
|
Reference in New Issue
Block a user