From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Asynchronous DNS Date: Sat, 30 Jan 2016 23:46:19 +0100 Message-ID: <87k2mqbs90.fsf@gnus.org> References: <87si1gx6wz.fsf@gnus.org> <8360yby1gx.fsf@gnu.org> <87r3gzy0fb.fsf@gnus.org> <83twlvwj3b.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454194036 13537 80.91.229.3 (30 Jan 2016 22:47:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Jan 2016 22:47:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 30 23:47:02 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aPeIH-00009p-7B for ged-emacs-devel@m.gmane.org; Sat, 30 Jan 2016 23:47:01 +0100 Original-Received: from localhost ([::1]:39957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPeID-0004F1-F8 for ged-emacs-devel@m.gmane.org; Sat, 30 Jan 2016 17:46:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPeI9-0004ET-LB for emacs-devel@gnu.org; Sat, 30 Jan 2016 17:46:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPeI5-0000JA-L5 for emacs-devel@gnu.org; Sat, 30 Jan 2016 17:46:53 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:54600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPeI5-0000IS-E4; Sat, 30 Jan 2016 17:46:49 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aPeHg-0002np-Lk; Sat, 30 Jan 2016 23:46:25 +0100 In-Reply-To: <83twlvwj3b.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 30 Jan 2016 10:46:16 +0200") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aPeHg-0002np-Lk MailScanner-NULL-Check: 1454798785.42193@LZ/86gEQMPlMwUmuc8kX1w X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:199063 Archived-At: Eli Zaretskii 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