Browse Source

Don't ignore a slightly unresponsive server for an hour, 5 minutes is enough.

comments & ok henning@
OPENBSD_4_4
ckuethe 16 years ago
parent
commit
ac65ec9396
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/usr.sbin/ntpd/ntp.c

+ 2
- 2
src/usr.sbin/ntpd/ntp.c View File

@ -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> * 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++; sent_cnt++;
} }
if (p->deadline > 0 && p->deadline <= getmonotime()) { if (p->deadline > 0 && p->deadline <= getmonotime()) {
timeout = error_interval();
timeout = 300;
log_debug("no reply from %s received in time, " log_debug("no reply from %s received in time, "
"next query %ds", log_sockaddr( "next query %ds", log_sockaddr(
(struct sockaddr *)&p->addr->ss), timeout); (struct sockaddr *)&p->addr->ss), timeout);


Loading…
Cancel
Save