From 5cd0d1c7447c6947e81c659635a472a97d41303d Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Mon, 16 Nov 2009 13:08:31 +0000 Subject: protocol/client: Changed default ping-timeout to 42 This change is necessary to avoid frequent disconnections between client and server under load. A disconnect-connect sequence is costly in terms of clean up and re-building of context, self-heals etc. This value should be optimal for most use cases. Users requiring a lower ping-timeout value need to configure it explicitly. Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 384 (Increase default timeout in client protocol) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=384 --- xlators/protocol/client/src/client-protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/protocol/client/src/client-protocol.c') diff --git a/xlators/protocol/client/src/client-protocol.c b/xlators/protocol/client/src/client-protocol.c index 8af3922b6b8..de7ad5c391b 100644 --- a/xlators/protocol/client/src/client-protocol.c +++ b/xlators/protocol/client/src/client-protocol.c @@ -6566,8 +6566,8 @@ init (xlator_t *this) "setting ping-timeout to %d", ping_timeout); } else { gf_log (this->name, GF_LOG_DEBUG, - "defaulting ping-timeout to 10"); - ping_timeout = 10; + "defaulting ping-timeout to 42"); + ping_timeout = GF_UNIVERSAL_ANSWER; } conf = CALLOC (1, sizeof (client_conf_t)); -- cgit