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: Wed, 24 Feb 2016 17:26:10 +1100 Organization: Programmerer Ingebrigtsen Message-ID: <87d1rmd3p9.fsf@gnus.org> References: <83k2mlyet8.fsf@gnu.org> <87lh71nriy.fsf@gnus.org> <8637t8opla.fsf@realize.ch> <871t8skg6c.fsf@gnus.org> <86y4b0n5q2.fsf@realize.ch> <87fux7gb7o.fsf@gnus.org> <83wpqjvd2f.fsf@gnu.org> <87zivfobn4.fsf@gnus.org> <86y4ao5g1c.fsf@realize.ch> <87r3ggdo9f.fsf@gnus.org> <86twlb5yl4.fsf@realize.ch> <83d1rzz1mu.fsf@gnu.org> <86egcc49qu.fsf@realize.ch> <87io1k41cg.fsf@gnus.org> <86a8mv41s5.fsf@realize.ch> <8660xj40ky.fsf@realize.ch> <87r3g6iybb.fsf@gnus.org> <87bn7ahiit.fsf@gnus.org> <86povp3nbk.fsf@realize.ch> <87povpa45x.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456295195 10936 80.91.229.3 (24 Feb 2016 06:26:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2016 06:26:35 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 24 07:26:27 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 1aYSu2-00016G-NN for ged-emacs-devel@m.gmane.org; Wed, 24 Feb 2016 07:26:26 +0100 Original-Received: from localhost ([::1]:33829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYSu1-0001uZ-OB for ged-emacs-devel@m.gmane.org; Wed, 24 Feb 2016 01:26:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYSty-0001sk-2P for emacs-devel@gnu.org; Wed, 24 Feb 2016 01:26:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYStu-0004aM-Rd for emacs-devel@gnu.org; Wed, 24 Feb 2016 01:26:22 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:50730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYStu-0004aE-Kr for emacs-devel@gnu.org; Wed, 24 Feb 2016 01:26:18 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aYSts-0000z8-NH for emacs-devel@gnu.org; Wed, 24 Feb 2016 07:26:17 +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 ; Wed, 24 Feb 2016 07:26:16 +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 ; Wed, 24 Feb 2016 07:26:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 19 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.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:xZvgijh9d6iwz3oAY0p+umUeV0k= 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:200599 Archived-At: Amazingly enough, there have been no bug reports from the networking code hackery, so I'm now continuing to tweak stuff a bit. I've removed the blockers from the process setting functions, and deferred completion of the setup to the async code. It seems to work fine -- starting erc is now completely non-blocking. I wonder whether I should perhaps start rewriting the getaddrinfo_a code to, well, not use getaddrinfo_a, but instead our own function that starts a thread and just calls getaddrinfo/gethostbyname. That would make this stuff work on BSD, Apple and Windows, too, I think? But I only have a few days left of my holiday, so perhaps that's not realistic... Hm... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no