Lines Matching defs:timeout
62 db_timeout_t timeout, to;
115 * Default to the normal timeout unless the user configured
116 * a full election timeout and we think we need a full election.
119 timeout = rep->elect_timeout;
122 timeout = rep->full_elect_timeout;
198 * If we get a timeout, continue with the election.
216 to = timeout;
300 if (to > timeout)
301 to = timeout;
304 "Egen changed while waiting. Now %lu. New timeout %lu, orig timeout %lu",
305 (u_long)rep->egen, (u_long)to, (u_long)timeout));
309 * so we'll backoff our timeout so that we don't get
312 * Backoff to 80% of the current timeout.
384 * down, the winner will wait the full timeout
411 if (to > timeout)
412 to = timeout;
415 "While waiting egen changed to %lu. Phase 2 New timeout %lu, orig timeout %lu",
417 (u_long)to, (u_long)timeout));
1090 * timeout/10, making sure we sleep at least 1usec if timeout < 10.
1092 #define SLEEPTIME(timeout) \
1093 (timeout > 5000000) ? 500000 : ((timeout >= 10) ? timeout / 10 : 1);
1105 u_int32_t egen, sleeptime, sleeptotal, timeout;
1112 timeout = *timeoutp;
1114 * The user specifies an overall timeout function, but checking
1115 * is cheap and the timeout may be a generous upper bound.
1116 * Sleep repeatedly for the smaller of .5s and timeout/10.
1118 sleeptime = SLEEPTIME(timeout);
1120 while (sleeptotal < timeout) {
1132 timeout = *timeoutp;
1134 * We adjusted timeout, if we've already waited
1143 if (sleeptotal >= timeout) {
1147 sleeptime = SLEEPTIME(timeout);
1159 * when sites have very different timeout settings).