From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Async DNS redux Date: Mon, 06 Feb 2012 22:05:39 -0500 Message-ID: References: <87ty3494yb.fsf@gnus.org> <877gzzd5ud.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328583947 32560 80.91.229.3 (7 Feb 2012 03:05:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2012 03:05:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 07 04:05:47 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RubNJ-0002UU-Lt for ged-emacs-devel@m.gmane.org; Tue, 07 Feb 2012 04:05:45 +0100 Original-Received: from localhost ([::1]:56151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RubNI-0007Dh-9O for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2012 22:05:44 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:39774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RubNF-0007DQ-Q4 for emacs-devel@gnu.org; Mon, 06 Feb 2012 22:05:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RubNE-00012v-Ul for emacs-devel@gnu.org; Mon, 06 Feb 2012 22:05:41 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:42557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RubNE-00012p-QT for emacs-devel@gnu.org; Mon, 06 Feb 2012 22:05:40 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAHCUME9MCqD0/2dsb2JhbABDr0aBBoFyAQEEAVYjBQsLNBIUGA0kLodhuR2LWBICAgMGAgQCAQQCAgwGCgECAYQdAQQEHoM5BIhEmwOEWg X-IronPort-AV: E=Sophos;i="4.73,374,1325480400"; d="scan'208";a="161569398" Original-Received: from 76-10-160-244.dsl.teksavvy.com (HELO pastel.home) ([76.10.160.244]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 06 Feb 2012 22:05:40 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id E140458BE3; Mon, 6 Feb 2012 22:05:39 -0500 (EST) In-Reply-To: <877gzzd5ud.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 06 Feb 2012 22:12:10 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:148293 Archived-At: > An alternative would be to make `make-network-process' fully > asynchronous, and do the DNS resolving in an asynch manner there. That seems like the more direct solution. Providing a proof-of-concept async Elisp-level resolution isn't hard if you use something like (start-process "dns-resolve" nil "host" "the.name"), but I think that fixing it at the C code level in make-network-process makes a lot more sense. Stefan