You've already forked node-redis
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:
2
index.js
2
index.js
@@ -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;
|
||||
|
Reference in New Issue
Block a user