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: Mon, 08 Feb 2016 12:55:06 +1100 Message-ID: <8760y055l1.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> <877fihjo4m.fsf@gnus.org> <86io20n3xn.fsf@realize.ch> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454896554 12130 80.91.229.3 (8 Feb 2016 01:55:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Feb 2016 01:55:54 +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 Mon Feb 08 02:55:43 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 1aSb3H-0003Bw-KL for ged-emacs-devel@m.gmane.org; Mon, 08 Feb 2016 02:55:43 +0100 Original-Received: from localhost ([::1]:40069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSb3F-0007Uf-Uy for ged-emacs-devel@m.gmane.org; Sun, 07 Feb 2016 20:55:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSb3C-0007UX-SX for emacs-devel@gnu.org; Sun, 07 Feb 2016 20:55:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSb39-0002el-FD for emacs-devel@gnu.org; Sun, 07 Feb 2016 20:55:38 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:56652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSb38-0002eN-W4; Sun, 07 Feb 2016 20:55:35 -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 1aSb2l-0001AF-4h; Mon, 08 Feb 2016 02:55:11 +0100 In-Reply-To: <86io20n3xn.fsf@realize.ch> (Alain Schneble's message of "Sun, 7 Feb 2016 12:41:08 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) X-MailScanner-ID: 1aSb2l-0001AF-4h MailScanner-NULL-Check: 1455501311.90215@ecE/jVqQUVTKCupqmmy9bQ 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:199475 Archived-At: Alain Schneble writes: > Agreed. A name reflecting more the level of "asynchronicity" would be a > better choice and less misleading, I think. :nowait 'immediate has a nice ring to it... > 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? It would be better if the application code didn't have to care, but that means that either all those functions will have to block (getting us back to square one, basically), or they'll have to set up a queue of pending actions to be taken, which I think is rather too ambitious. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no