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 resolving Date: Sat, 14 Feb 2015 14:44:00 +1100 Message-ID: <87iof5i2db.fsf@building.gnus.org> References: <877fvmffrz.fsf@building.gnus.org> <54DDA602.7090504@cs.ucla.edu> <87d25ep8po.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423885607 23823 80.91.229.3 (14 Feb 2015 03:46:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2015 03:46:47 +0000 (UTC) Cc: Paul Eggert , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 14 04:46:37 2015 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 1YMTgi-0006i8-3D for ged-emacs-devel@m.gmane.org; Sat, 14 Feb 2015 04:46:36 +0100 Original-Received: from localhost ([::1]:58657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMTgh-0001Rt-H5 for ged-emacs-devel@m.gmane.org; Fri, 13 Feb 2015 22:46:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMTgQ-0001Ro-IG for emacs-devel@gnu.org; Fri, 13 Feb 2015 22:46:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMTgL-00027O-K0 for emacs-devel@gnu.org; Fri, 13 Feb 2015 22:46:18 -0500 Original-Received: from smtp.syd.comcen.com.au ([203.23.236.77]:2749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMTgL-00026h-1q for emacs-devel@gnu.org; Fri, 13 Feb 2015 22:46:13 -0500 Original-Received: from building.gnus.org ([27.96.197.126]) by smtp.syd.comcen.com.au (8.13.4/8.12.9) with ESMTP id t1E3i5DC028539; Sat, 14 Feb 2015 14:44:06 +1100 (EST) In-Reply-To: (Stefan Monnier's message of "Fri, 13 Feb 2015 14:20:59 -0500") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-comcen-MailScanner-Information: Please contact the ISP for more information X-comcen-MailScanner: Found to be clean X-comcen-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.119, required 4, AWL 0.02, BAYES_50 0.00, RDNS_NONE 0.10) X-comcen-MailScanner-From: larsi@gnus.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 203.23.236.77 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:183038 Archived-At: Stefan Monnier writes: > Actually, do we really need to make the lookup Elisp-visible? I mean, > don't we currently just pass the DNS name to make-network-process which > then does the DNS lookup and the TCP connect? If so, we don't really > need to make getaddrinfo_a visible at the Elisp level, we just > need to make use of it in make-network-process if :nowait was specified. > > Am I missing something? No, I think that's a great idea. Making `make-network-process' totally asynchronous would be good for general asynchronousness (that should be a word), too, since the handshake part is synchronous today, I think. *looks at documentation* Oh, right. There's :nowait, so it would make sense to only use getaddrinfo_a if we've got a :nowait connection. I can take a look at implementing this (if nobody else feels inspired to), but I've got one questions to start with: Is getaddrinfo_a available on all the platforms we care about? Or is there a gnulib module for compatibility or something? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/