summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorckuethe <ckuethe@openbsd.org>2008-06-08 19:14:40 +0000
committerckuethe <ckuethe@openbsd.org>2008-06-08 19:14:40 +0000
commita7c009af1b0e3d0e7ddc81efe74a0cbb05967d89 (patch)
tree0de128f9c7923eeda32004ab461465ce97b88348
parentFirst minimal cleanup of routing code, kill rtrequest() it got replaced with (diff)
downloadwireguard-openbsd-a7c009af1b0e3d0e7ddc81efe74a0cbb05967d89.tar.xz
wireguard-openbsd-a7c009af1b0e3d0e7ddc81efe74a0cbb05967d89.zip
Don't ignore a slightly unresponsive server for an hour, 5 minutes is enough.
comments & ok henning@
-rw-r--r--usr.sbin/ntpd/ntp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c
index 7026a9ba548..bffd75e4c2e 100644
--- a/usr.sbin/ntpd/ntp.c
+++ b/usr.sbin/ntpd/ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp.c,v 1.104 2008/04/13 00:22:17 djm Exp $ */
+/* $OpenBSD: ntp.c,v 1.105 2008/06/08 19:14:40 ckuethe Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -230,7 +230,7 @@ ntp_main(int pipe_prnt[2], struct ntpd_conf *nconf, struct passwd *pw)
sent_cnt++;
}
if (p->deadline > 0 && p->deadline <= getmonotime()) {
- timeout = error_interval();
+ timeout = 300;
log_debug("no reply from %s received in time, "
"next query %ds", log_sockaddr(
(struct sockaddr *)&p->addr->ss), timeout);