summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-10-27 05:36:32 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-10-27 04:13:52 -0700
commitb2f195720b27d9e69f7b851478515781e5786469 (patch)
treec620fec6721a145f154704b5e07df72fcc8bcd4c
parent6ac081eccaa4f034874aa6687d87fb8b30207ebf (diff)
socket: Reduce keepalive idle and interval time
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1956 (NFS client hangs after failover) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1956
-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 00b7dd5e5..bf825049d 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) {