pre-release proposal

Hal Murray hmurray at megapathdsl.net
Wed Jan 25 09:32:28 UTC 2017


How about cleaning up the thread stuff for DNS lookup?

There is a whole module devoted to the interface between the main code and 
the call to do the DNS lookup.  How about dumping that?  Yes, the whole thing.

I haven't worked out the details.  The worker routine in the new thread takes 
a pointer as an arg and returns a pointer.  That's all we need to get the job 
done.  It will take a tiny wrapper routine.

The main code needs a few slots of global storage.  One to keep track of the 
thread, and one too keep track of the peer slot being looked up.  That limits 
us to one thread.  I think that is fine.  If we want multiple threads, then 
we need a slot per peer for the thread and a global counter to limit the 
number of threads.

-------

Here is why I'm thinking about that.

I think there is a bug in the current DNS retry logic.  I haven't verified 
things.  When I was setting up a new machine, I copied ntp.conf before 
/etc/hosts.  ntpd didn't find any hosts.  There were DNS retrying messages, 
but it never seemed to retry.


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list