Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493358 - net-misc/openntpd - failed dns results in extended startup delay when -s option in use
Summary: net-misc/openntpd - failed dns results in extended startup delay when -s opti...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul B. Henson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-05 04:49 UTC by Paul B. Henson
Modified: 2013-12-10 09:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix startup delay when hostnames used with -s option and dns fails (openntpd-20080406-start_timeout.patch,1.13 KB, patch)
2013-12-05 04:50 UTC, Paul B. Henson
Details | Diff
updated ebuild incorporating the patch (openntpd-20080406-r8.ebuild,2.71 KB, text/plain)
2013-12-05 04:51 UTC, Paul B. Henson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul B. Henson 2013-12-05 04:49:54 UTC
If openntpd is used with hostnames rather than IP addresses in the config, the -s option is used, and dns lookups timeout, there is an undesired extended startup delay. If IP addresses are used, there is at most a 15 second startup delay. Attached patch updates ntpd to give up initial time setting and background within approximately 15 seconds (the hardcoded timeout waiting for a reply from the no privs child process) + however long you have your resolver configured to timeout a dns lookup.

Reproducible: Always
Comment 1 Paul B. Henson 2013-12-05 04:50:55 UTC
Created attachment 364636 [details, diff]
Fix startup delay when hostnames used with -s option and dns fails
Comment 2 Paul B. Henson 2013-12-05 04:51:21 UTC
Created attachment 364638 [details]
updated ebuild incorporating the patch
Comment 3 Christoph Junghans (RETIRED) gentoo-dev 2013-12-10 09:31:41 UTC
+*openntpd-20080406-r7 (10 Dec 2013)
+
+  10 Dec 2013; Christoph Junghans <ottxor@gentoo.org>
+  +files/openntpd-20080406-dns-timeout.patch,
+  +files/openntpd-20080406-signal.patch, +openntpd-20080406-r7.ebuild,
+  -files/openntpd.logrotate-20080406-r5, -openntpd-20080406-r6.ebuild,
+  metadata.xml:
+  fixed signal on linux (bug #493084), fixed dns-timeout (bug #493358), make
+  Paul maintainer
+