[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
that).
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
- Re: Asynchronous DNS, (continued)
Re: Asynchronous DNS, Paul Eggert, 2016/01/23
Re: Asynchronous DNS, Stefan Monnier, 2016/01/23
Re: Asynchronous DNS, John Wiegley, 2016/01/26
Re: Asynchronous DNS, Florian Weimer, 2016/01/26
Re: Asynchronous DNS, Lars Ingebrigtsen, 2016/01/29
Re: Asynchronous DNS, Eli Zaretskii, 2016/01/30