summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-transport/socket/src/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/rpc-transport/socket/src/socket.c')
-rw-r--r--rpc/rpc-transport/socket/src/socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c
index 00b7dd5e56a..bf825049dca 100644
--- a/rpc/rpc-transport/socket/src/socket.c
+++ b/rpc/rpc-transport/socket/src/socket.c
@@ -2582,7 +2582,8 @@ socket_init (rpc_transport_t *this)
/* Enable Keep-alive by default. */
priv->keepalive = 1;
- priv->keepaliveintvl = GF_USE_DEFAULT_KEEPALIVE;
+ priv->keepaliveintvl = 2;
+ priv->keepaliveidle = 20;
if (dict_get_str (this->options, "transport.socket.keepalive",
&optstr) == 0) {
if (gf_string2boolean (optstr, &tmp_bool) == -1) {