emacs-devel
[Top][All Lists]
Advanced

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

Re: Asynchronous DNS resolving


From: Lars Ingebrigtsen
Subject: Re: Asynchronous DNS resolving
Date: Sat, 14 Feb 2015 14:44:00 +1100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> Actually, do we really need to make the lookup Elisp-visible?  I mean,
> don't we currently just pass the DNS name to make-network-process which
> then does the DNS lookup and the TCP connect?  If so, we don't really
> need to make getaddrinfo_a visible at the Elisp level, we just
> need to make use of it in make-network-process if :nowait was specified.
>
> Am I missing something?

No, I think that's a great idea.  Making `make-network-process' totally
asynchronous would be good for general asynchronousness (that should be
a word), too, since the handshake part is synchronous today, I think.

*looks at documentation*  Oh, right.  There's :nowait, so it would make
sense to only use getaddrinfo_a if we've got a :nowait connection.

I can take a look at implementing this (if nobody else feels inspired
to), but I've got one questions to start with:

Is getaddrinfo_a available on all the platforms we care about?  Or is
there a gnulib module for compatibility or something?

-- 
(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]