From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alain Schneble Newsgroups: gmane.emacs.devel Subject: Re: Asynchronous DNS Date: Mon, 15 Feb 2016 01:19:24 +0100 Message-ID: <86fuwu6d0z.fsf@realize.ch> References: <877fihjo4m.fsf@gnus.org> <86io20n3xn.fsf@realize.ch> <8760y055l1.fsf@gnus.org> <8660xzmyyr.fsf@realize.ch> <87pow7ocyw.fsf@gnus.org> <861t8nmxlj.fsf@realize.ch> <87y4auiurw.fsf@gnus.org> <86k2me8dee.fsf@realize.ch> <83a8n9ddk5.fsf@gnu.org> <864mdh8vj5.fsf@realize.ch> <87pow579kt.fsf@gnus.org> <86ziv87st0.fsf@realize.ch> <87vb5u4qtq.fsf@gnus.org> <86egci6xvk.fsf@realize.ch> <87twldgsrv.fsf@gnus.org> <8637sw7w4m.fsf@realize.ch> <87vb5sdod6.fsf@gnus.org> <83lh6nzvfp.fsf@gnu.org> <87fuwv6ai4.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455495602 24414 80.91.229.3 (15 Feb 2016 00:20:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Feb 2016 00:20:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 15 01:19:57 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 1aV6tR-00050H-BK for ged-emacs-devel@m.gmane.org; Mon, 15 Feb 2016 01:19:57 +0100 Original-Received: from localhost ([::1]:54748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV6tQ-0005cM-GC for ged-emacs-devel@m.gmane.org; Sun, 14 Feb 2016 19:19:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV6tE-0005cC-Gs for emacs-devel@gnu.org; Sun, 14 Feb 2016 19:19:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aV6t9-0008I2-NY for emacs-devel@gnu.org; Sun, 14 Feb 2016 19:19:44 -0500 Original-Received: from clientmail.realize.ch ([46.140.89.53]:3143) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1aV6t9-0008Hp-Bi for emacs-devel@gnu.org; Sun, 14 Feb 2016 19:19:39 -0500 Original-Received: from rintintin.hq.realize.ch.lan.rit ([192.168.0.105]) by clientmail.realize.ch ; Mon, 15 Feb 2016 01:19:28 +0100 Original-Received: from MYNGB (192.168.66.64) by rintintin.hq.realize.ch.lan.rit (192.168.0.105) with Microsoft SMTP Server (TLS) id 15.0.516.32; Mon, 15 Feb 2016 01:19:21 +0100 In-Reply-To: (Stefan Monnier's message of "Sun, 14 Feb 2016 08:56:44 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (windows-nt) X-ClientProxiedBy: rintintin.hq.realize.ch.lan.rit (192.168.0.105) To rintintin.hq.realize.ch.lan.rit (192.168.0.105) X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] X-Received-From: 46.140.89.53 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:199945 Archived-At: Stefan Monnier writes: >> (progn >> (make-network-stream ... :nowait t) >> (set-process-coding-system ...)) >> would not block. > > Why would we have to block? > Can't set-process-coding-system just set some process fields (to > remember which coding-system to use) and return, and then use those > fields later on when the DNS resolution is done? Yes, that would be a welcome optimization and should be doable with a small refactoring in set-process-coding-system and set_network_socket_coding_system, AFAICS.