Browse Source

If polling a server results in an error, drop that server to the maximum

poll interval;  ok henning@
OPENBSD_3_7
dtucker 20 years ago
parent
commit
ec912cc477
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/usr.sbin/ntpd/client.c

+ 4
- 1
src/usr.sbin/ntpd/client.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: client.c,v 1.48 2004/12/13 12:22:52 dtucker Exp $ */
/* $OpenBSD: client.c,v 1.49 2004/12/14 23:44:20 dtucker Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -185,6 +185,9 @@ client_dispatch(struct ntp_peer *p, u_int8_t settime)
errno == ENETDOWN || errno == ECONNREFUSED) {
log_warn("recvfrom %s",
log_sockaddr((struct sockaddr *)&p->addr->ss));
interval = INTERVAL_QUERY_PATHETIC *
(QSCALE_OFF_MAX / QSCALE_OFF_MIN);
set_next(p, interval);
return (0);
} else
fatal("recvfrom");


Loading…
Cancel
Save