1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Set socket_keepalive to default to true

This commit is contained in:
Bryce Baril
2014-07-10 21:18:47 -07:00
parent 4e24f24e86
commit 8b5d55fecd
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ function RedisClient(stream, options) {
this.options.socket_nodelay = true;
}
if (this.options.socket_keepalive === undefined) {
this.options.socket_keepalive = false;
this.options.socket_keepalive = true;
}
this.should_buffer = false;
this.command_queue_high_water = this.options.command_queue_high_water || 1000;