From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Asynchronous DNS Date: Sun, 07 Feb 2016 21:16:15 +0200 Message-ID: <8337t4s54w.fsf@gnu.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1454872622 20775 80.91.229.3 (7 Feb 2016 19:17:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2016 19:17:02 +0000 (UTC) Cc: larsi@gnus.org, emacs-devel@gnu.org To: Alain Schneble Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 07 20:16:58 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 1aSUpJ-0007RL-OV for ged-emacs-devel@m.gmane.org; Sun, 07 Feb 2016 20:16:53 +0100 Original-Received: from localhost ([::1]:37390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSUpJ-0006k7-05 for ged-emacs-devel@m.gmane.org; Sun, 07 Feb 2016 14:16:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSUp5-0006jX-Hf for emacs-devel@gnu.org; Sun, 07 Feb 2016 14:16:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSUp0-0006GO-Ly for emacs-devel@gnu.org; Sun, 07 Feb 2016 14:16:39 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSUp0-0006GK-Iu; Sun, 07 Feb 2016 14:16:34 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4496 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aSUoz-0004b8-OE; Sun, 07 Feb 2016 14:16:34 -0500 In-reply-to: <86io20n3xn.fsf@realize.ch> (message from Alain Schneble on Sun, 7 Feb 2016 12:41:08 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:199458 Archived-At: > From: Alain Schneble > CC: Eli Zaretskii , > Date: Sun, 7 Feb 2016 12:41:08 +0100 > > 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? Why is it invasive? A single call to a single function at the beginning of each of those functions is all that's needed. And if the DNS resolution is already completed, that call will be a no-op.