[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Asynchronous DNS

From: Lars Magne Ingebrigtsen
Subject: Re: Asynchronous DNS
Date: Sun, 24 Jan 2016 18:16:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

I've been reading make-network-process, and it's, er, complicated code.
Three levels of nesting #ifdefs.  But I think it can be separated into
two functions without breaking too much -- one that does (or starts
doing) name resolution, and one that calls connect (and the stuff after

Doing asynch DNS can be triggered by the existing :nowait parameter
without breaking any existing callers, I think.

So: If called without :nowait, the first half of the function will call
the second one directly.  If called with :nowait, the second half of the
function will be called from within the bowels of
wait_reading_process_output somewhere.

Sound like a plan?  If so I'll start implementing on...  I think
Wednesday.  I may need some help on the autoconf stuff for
getaddrinfo_a, though.  :-)

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

[Prev in Thread] Current Thread [Next in Thread]