ntpd: perform DNS resolution out of send/receive loop - closes 10466
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 28 Oct 2017 15:54:24 +0000 (17:54 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 28 Oct 2017 15:56:43 +0000 (17:56 +0200)
commita1e9bc6876f6539805095e9395c604d3675c526d
tree8e179a204ebceb2415e9f43e0d0a81f3b48d0bdf
parentecce3a1999f3c5ded4baebbc0b17c48d80fe2781
ntpd: perform DNS resolution out of send/receive loop - closes 10466

Bad case: send request to server1good.com; then try to resolve server2bad.com -
this fails, and failure takes ~5 secs; then receive server1's
response 5 seconds later. We'll never sync up in this case...

function                                             old     new   delta
ntpd_main                                           1079    1106     +27

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ntpd.c