From b2f195720b27d9e69f7b851478515781e5786469 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Wed, 27 Oct 2010 05:36:32 +0000 Subject: socket: Reduce keepalive idle and interval time Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 1956 (NFS client hangs after failover) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1956 --- rpc/rpc-transport/socket/src/socket.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit