From 2218d1d0787b4e74f21aa5b863c18e305469a39f Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Tue, 20 Sep 2005 18:34:15 +0000 Subject: [PATCH] defect 892 Fix performance degradation when sending 10-15 messages per second because of a large seqno_unchanged_const. Also, seqno_unchanged_const does not have a configurable option and this patch adds that support. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@814 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/totemconfig.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exec/totemconfig.c b/exec/totemconfig.c index f50f2d37..c9a6d784 100644 --- a/exec/totemconfig.c +++ b/exec/totemconfig.c @@ -62,7 +62,7 @@ #define MERGE_TIMEOUT 200 #define DOWNCHECK_TIMEOUT 1000 #define FAIL_TO_RECV_CONST 10 -#define SEQNO_UNCHANGED_CONST 3000 +#define SEQNO_UNCHANGED_CONST 30 #define MINIMUM_TIMEOUT (1000/HZ)*3 static char error_string_response[512]; @@ -252,6 +252,8 @@ extern int totem_config_read ( totem_config->downcheck_timeout = atoi(loc); } else if ((loc = strstr_rs (line, "fail_recv_const:"))) { totem_config->fail_to_recv_const = atoi(loc); + } else if ((loc = strstr_rs (line, "seqno_unchanged_const:"))) { + totem_config->seqno_unchanged_const = atoi(loc); } else if ((loc = strstr_rs (line, "}"))) { parse = MAIN_HEAD; } else {