summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntp.c
diff options
context:
space:
mode:
authorChris Kuethe <ckuethe@cvs.openbsd.org>2008-06-08 19:14:41 +0000
committerChris Kuethe <ckuethe@cvs.openbsd.org>2008-06-08 19:14:41 +0000
commit3537c0084810d544f5f9e6c57cedb3e3d2a4c6da (patch)
tree8af11765c85ca903fe39eaa782851b29869b5f08 /usr.sbin/ntpd/ntp.c
parentee9d32e9e66faa16ba0f94accab7f048a8767fec (diff)
Don't ignore a slightly unresponsive server for an hour, 5 minutes is enough.
comments & ok henning@
Diffstat (limited to 'usr.sbin/ntpd/ntp.c')
-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);