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: Sun, 07 Feb 2016 12:38:33 +1100 Message-ID: <877fihjo4m.fsf@gnus.org> References: <87si1gx6wz.fsf@gnus.org> <86y4b5zvzt.fsf@gmail.com> <8760y9kwrk.fsf@gnus.org> <8760y7nag7.fsf@gnus.org> <83oabzzsjq.fsf@gnu.org> <87fuxazkfe.fsf@gnus.org> <83io25yeqk.fsf@gnu.org> <87h9hpnreg.fsf@gnus.org> <83y4b0wi7m.fsf@gnu.org> <87si17evk6.fsf@gnus.org> <83twlnvcz2.fsf@gnu.org> <87vb63obm3.fsf@gnus.org> <87r3gqmg6g.fsf@gnus.org> <83egcqtfnm.fsf@gnu.org> <86mvrdmk8p.fsf@realize.ch> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454809166 31296 80.91.229.3 (7 Feb 2016 01:39:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2016 01:39:26 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Alain Schneble Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 07 02:39:19 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 1aSEJq-0002ss-5U for ged-emacs-devel@m.gmane.org; Sun, 07 Feb 2016 02:39:18 +0100 Original-Received: from localhost ([::1]:58241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSEJp-0006v5-FS for ged-emacs-devel@m.gmane.org; Sat, 06 Feb 2016 20:39:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSEJd-0006ux-45 for emacs-devel@gnu.org; Sat, 06 Feb 2016 20:39:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSEJZ-0005Da-Uh for emacs-devel@gnu.org; Sat, 06 Feb 2016 20:39:05 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:57605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSEJZ-0005DU-Nb; Sat, 06 Feb 2016 20:39:01 -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 1aSEJD-0002pF-FZ; Sun, 07 Feb 2016 02:38:40 +0100 In-Reply-To: <86mvrdmk8p.fsf@realize.ch> (Alain Schneble's message of "Sun, 7 Feb 2016 01:34:14 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) X-MailScanner-ID: 1aSEJD-0002pF-FZ MailScanner-NULL-Check: 1455413920.27256@lic1E8r4FJFRHOUe2eFGZA 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:199432 Archived-At: Alain Schneble writes: > On one hand, I see the practical approach with the 'dns async mode to > circumvent these compatibility issues. On the other hand, I don't think > it's a good choice from a interface/usage point of view. I think it is > not clear for a user why she has to care about whether both async DNS > and async socket connection or only the latter shall be used and why the > process behavior is different. This distinction only makes sense with > the knowledge of how it's implemented internally, I think. 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. > 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. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no