summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client/src/client-protocol.c
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2009-11-16 13:08:31 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-19 00:53:06 -0800
commit5cd0d1c7447c6947e81c659635a472a97d41303d (patch)
tree748362930d67008f956713076a643ab0ea59202e /xlators/protocol/client/src/client-protocol.c
parent916ca4d87c410c075a622fc24848ba06868c280a (diff)
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 <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 384 (Increase default timeout in client protocol) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=384
Diffstat (limited to 'xlators/protocol/client/src/client-protocol.c')
-rw-r--r--xlators/protocol/client/src/client-protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/protocol/client/src/client-protocol.c b/xlators/protocol/client/src/client-protocol.c
index 8af3922b6..de7ad5c39 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));