emacs-devel
[Top][All Lists]
Advanced

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

Re: Asynchronous DNS


From: Alain Schneble
Subject: Re: Asynchronous DNS
Date: Sun, 7 Feb 2016 12:41:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (windows-nt)

Lars Ingebrigtsen <address@hidden> writes:

> Perhaps 'dns is the wrong symbol to use for :nowait, since it isn't
> really about DNS, but getting a fully asynchronous connection.  That is,
> :nowait t gives us a fully set up socket, really (seen from the
> application point of view).  Perhaps :nowait 'immediate or something
> would make more sense than :nowait 'dns, which is, after all, just an
> implementation detail.

Agreed.  A name reflecting more the level of "asynchronicity" would be a
better choice and less misleading, I think.

But as said, even better would be a solution where this distinction is
not necessary at all, IMHO.  But you tried it out and the only feasible
approach I see would be what Eli Zaretskii proposed, IIUC, to block and
synchronously wait for DNS resolve completion and socket initialization
in all the functions requiring a Lisp process having "valid" infd and/or
outfd set.  OTOH, that sounds quite invasive to those functions, doesn't
it?

>> I guess changing the semantics of :nowait t, to say that clients shall
>> not use the returned process before connection is established, is out of
>> discussion, right?
>
> Yes.

Alright, thanks for clarifying this.




reply via email to

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