emacs-devel
[Top][All Lists]
Advanced

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

Re: Asynchronous DNS


From: Lars Ingebrigtsen
Subject: Re: Asynchronous DNS
Date: Sat, 30 Jan 2016 23:46:19 +0100
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> Is the below still correct and accurate, including the values of the
> argument with which the sentinel will be called?
>
>     :nowait BOOL
>           If BOOL is non-`nil' for a stream connection, return without
>           waiting for the connection to complete.  When the connection
>           succeeds or fails, Emacs will call the sentinel function,
>           with a second argument matching `"open"' (if successful) or
>           `"failed"'.  The default is to block, so that
>           `make-network-process' does not return until the connection
>           has succeeded or failed.

Yes.  If not, it's a bug.

> What happens if the async DNS fails?

It marks the process as "failed".  It should probably say what kind of
failure it is, but I haven't investigated that part of the sentinel
system yet...

> Also, do we want to allow for testing this separately in the likes of
>
>   (featurep 'make-network-process '(:nowait t))

I don't really think so...  The level of asynchronicity (that should be
a word) should make no programmatic difference.

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