Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions lib/redis/event_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,10 @@ export function readyHandler(self) {
})
.catch(noop)
.finally(() => {
self
.client("SETINFO", "LIB-VER", version)
.catch(noop);
self.client("SETINFO", "LIB-VER", version).catch(() => {
// If the server doesn't support CLIENT SETINFO, disable it
self.options.disableClientInfo = true;
});
});

self
Expand All @@ -293,7 +294,10 @@ export function readyHandler(self) {
? `ioredis(${self.options.clientInfoTag})`
: "ioredis"
)
.catch(noop);
.catch(() => {
// If the server doesn't support CLIENT SETINFO, disable it
self.options.disableClientInfo = true;
});
}

if (self.options.readOnly) {
Expand Down
Loading