Skip to content

Commit

Permalink
fix(redis): Do not set connection name to prevent calling CLIENT.SETN…
Browse files Browse the repository at this point in the history
…AME command
  • Loading branch information
andris9 committed Oct 25, 2024
1 parent 5231327 commit 166a947
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ const REDIS_CONF = Object.assign(
logger.fatal({ msg: 'Redis connection error', err });
// always try to reconnect
return true;
},
connectionName: `${packageData.name}@${packageData.version}[${process.pid}${threadId ? `:${threadId}` : ''}]`
}
// Setting connection name triggers CLIENT.SETNAME command which is not supported by many managed hosts
//connectionName: `${packageData.name}@${packageData.version}[${process.pid}${threadId ? `:${threadId}` : ''}]`
},
typeof redisConf === 'string' ? redisUrl(redisConf) : redisConf || {}
);
Expand Down

0 comments on commit 166a947

Please sign in to comment.