diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-03-06 19:37:32 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-03-06 19:37:32 +0000 |
commit | d1eb29301178d6907d1b49245229ae3c7deed2f5 (patch) | |
tree | 97c110375386f54c649709221cd88e09431560f1 /usr.sbin/relayd | |
parent | 41830b96c1b5144beab9858f74e2881634f915d2 (diff) |
fix the health checks when using the retry option
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r-- | usr.sbin/relayd/hce.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/relayd/hce.c b/usr.sbin/relayd/hce.c index 7275da68987..a987f662f8e 100644 --- a/usr.sbin/relayd/hce.c +++ b/usr.sbin/relayd/hce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hce.c,v 1.16 2007/02/22 03:32:39 reyk Exp $ */ +/* $OpenBSD: hce.c,v 1.17 2007/03/06 19:37:31 reyk Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -223,11 +223,10 @@ hce_notify_done(struct host *host, const char *msg) u_long duration; u_int logopt; - if (host->up == HOST_DOWN && host->retry_cnt) { log_debug("hce_notify_done: host %s retry %d", host->name, host->retry_cnt); - host->up = HOST_UP; + host->up = host->last_up; host->retry_cnt--; } else host->retry_cnt = host->retry; |