Skip to content

Instantly share code, notes, and snippets.

@xaptronic
Created October 7, 2011 17:19
Show Gist options
  • Save xaptronic/1270830 to your computer and use it in GitHub Desktop.
Save xaptronic/1270830 to your computer and use it in GitHub Desktop.
Calling setMaxListeners on the sub object.
--- a/lib/stores/redis.js
+++ b/lib/stores/redis.js
@@ -75,6 +75,7 @@ function Redis (opts) {
} else {
opts.redisSub || (opts.redisSub = {});
this.sub = redis.createClient(opts.redisSub.port, opts.redisSub.host, opts.redisSub);
+ this.sub.setMaxListeners(0);
}
if (opts.redisClient instanceof RedisClient) {
this.cmd = opts.redisClient;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment