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: Sat, 30 Jan 2016 01:11:40 +0100 Organization: Programmerer Ingebrigtsen Message-ID: <87si1gx6wz.fsf@gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454112744 6742 80.91.229.3 (30 Jan 2016 00:12:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Jan 2016 00:12:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 30 01:12:14 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 1aPJ9C-0008SE-52 for ged-emacs-devel@m.gmane.org; Sat, 30 Jan 2016 01:12:14 +0100 Original-Received: from localhost ([::1]:37083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPJ9B-0005sL-3W for ged-emacs-devel@m.gmane.org; Fri, 29 Jan 2016 19:12:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPJ8t-0005s4-W0 for emacs-devel@gnu.org; Fri, 29 Jan 2016 19:11:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPJ8p-0005vD-LI for emacs-devel@gnu.org; Fri, 29 Jan 2016 19:11:55 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:59287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPJ8p-0005u9-EO for emacs-devel@gnu.org; Fri, 29 Jan 2016 19:11:51 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aPJ8n-0007x5-8N for emacs-devel@gnu.org; Sat, 30 Jan 2016 01:11:49 +0100 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Jan 2016 01:11:49 +0100 Original-Received: from larsi by cpe-60-225-211-161.nsw.bigpond.net.au with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Jan 2016 01:11:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cpe-60-225-211-161.nsw.bigpond.net.au Mail-Copies-To: never User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:qcKHKFHGqofxQqJLhDLzFsXtF2M= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:199013 Archived-At: Async DNS has now been implemented in the feature/async-dns branch, and I'm running that Emacs right now. And it works! I mean, eww no longer gets those awkward pauses when resolving DNS names of image assets. Whee! Or placebo! Whee! There's quite a bit of cleanup remaining, though, and I'm probably leaking memory ... somewhere... And I'm not really happy with the way I'm doing the polling, which required another process array in addition to the chan_process table. Surely a better way must exist, but the process isn't entered into the chan_process table until the socket has been created, and we can't create the socket before we've done the name resolution, because we don't know whether it's going to be an IPv4 address or an IPv6 address. If anybody else wants to start fiddling with the stuff, be my guest. :-) But I'm going to continue tinkering with it on the branch, and will probably merge with the trunk in a few days. It would be nice if people on non-Linux systems could check whether it builds at all on those systems before I do the merge... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no