Permalink
Browse files

Removing Redis state for socket.io. Too many open mongo connections.

  • Loading branch information...
1 parent 6dc0824 commit 63fe5297be2b13d2dddc3966350d82a6ae0f5d08 @samuelclay committed Mar 17, 2013
Showing with 9 additions and 23 deletions.
  1. +8 −8 node/unread_counts.coffee
  2. +1 −15 node/unread_counts.js
View
@@ -5,10 +5,10 @@ REDIS_SERVER = if process.env.NODE_ENV == 'development' then 'localhost' else 'd
SECURE = !!process.env.NODE_SSL
client = redis.createClient 6379, REDIS_SERVER
-RedisStore = require 'socket.io/lib/stores/redis'
-rpub = redis.createClient 6379, REDIS_SERVER
-rsub = redis.createClient 6379, REDIS_SERVER
-rclient = redis.createClient 6379, REDIS_SERVER
+# RedisStore = require 'socket.io/lib/stores/redis'
+# rpub = redis.createClient 6379, REDIS_SERVER
+# rsub = redis.createClient 6379, REDIS_SERVER
+# rclient = redis.createClient 6379, REDIS_SERVER
if SECURE
@@ -32,10 +32,10 @@ io.configure 'production', ->
io.configure 'development', ->
io.set 'log level', 2
-io.set 'store', new RedisStore
- redisPub : rpub
- redisSub : rsub
- redisClient : rclient
+# io.set 'store', new RedisStore
+# redisPub : rpub
+# redisSub : rsub
+# redisClient : rclient
io.sockets.on 'connection', (socket) ->
socket.on 'subscribe:feeds', (@feeds, @username) ->
View
Oops, something went wrong.

0 comments on commit 63fe529

Please sign in to comment.