Skip to content

Commit

Permalink
do our best to not auto-timeout connections
Browse files Browse the repository at this point in the history
  • Loading branch information
fictorial committed Nov 2, 2009
1 parent 430f53d commit fffc569
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function withConnection(callback) {
writeDebugMessage("connected.");

conn.setEncoding("utf8");
conn.setTimeout(0);

if (typeof(callback) == "function")
callback();
Expand Down

0 comments on commit fffc569

Please sign in to comment.