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
This commit is contained in:
Steven Dake 2005-09-20 18:34:15 +00:00
parent 3b44db0a54
commit 2218d1d078

View File

@ -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 {