From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22493: 25.1.50; open-gnutls-stream doesn't respect :nowait, so the connections are synchronous Date: Mon, 01 Feb 2016 20:50:17 +0200 Message-ID: <83bn801d06.fsf@gnu.org> References: <87mvrnzpge.fsf@gnus.org> <878u37zndq.fsf@gnus.org> <83r3gzwhg8.fsf@gnu.org> <87fuxebrsy.fsf@gnus.org> <878u36fung.fsf@gnus.org> <8360y93fka.fsf@gnu.org> <87wpqpwd8p.fsf@gnus.org> <83d1sh14is.fsf@gnu.org> <87egcx13kc.fsf@gnus.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1454352685 30922 80.91.229.3 (1 Feb 2016 18:51:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Feb 2016 18:51:25 +0000 (UTC) Cc: 22493@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 01 19:51:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aQJZ7-0006bR-EU for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Feb 2016 19:51:09 +0100 Original-Received: from localhost ([::1]:53768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQJZ6-0001Hn-UW for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Feb 2016 13:51:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQJZ0-0001Gt-Lx for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2016 13:51:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQJYz-0005TV-TA for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2016 13:51:02 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQJYz-0005TR-Pd for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2016 13:51:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aQJYz-0002a0-IC for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2016 13:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Feb 2016 18:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22493 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22493-submit@debbugs.gnu.org id=B22493.14543526599907 (code B ref 22493); Mon, 01 Feb 2016 18:51:01 +0000 Original-Received: (at 22493) by debbugs.gnu.org; 1 Feb 2016 18:50:59 +0000 Original-Received: from localhost ([127.0.0.1]:45455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQJYt-0002Ze-DS for submit@debbugs.gnu.org; Mon, 01 Feb 2016 13:50:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56553) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQJYo-0002ZO-8r for 22493@debbugs.gnu.org; Mon, 01 Feb 2016 13:50:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQJYf-0005Rz-3D for 22493@debbugs.gnu.org; Mon, 01 Feb 2016 13:50:45 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQJYf-0005Rv-0G; Mon, 01 Feb 2016 13:50:41 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1322 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aQJYe-0002yC-Ah; Mon, 01 Feb 2016 13:50:40 -0500 In-reply-to: <87egcx13kc.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 01 Feb 2016 05:01:55 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112217 Archived-At: > From: Lars Ingebrigtsen > Cc: 22493@debbugs.gnu.org > Date: Mon, 01 Feb 2016 05:01:55 +0100 > > Eli Zaretskii writes: > > > There's no such thing in Emacs as an idle thread. > > Sorry; I meant the idle loop. A sentinel indeed starts when Emacs is idle, but once it kicks in, it runs to completion, and Emacs cannot do anything else while it does. So if the user presses a key a millisecond after the sentinel is invoked and starts the GnuTLS negotiation procedure, the user will still have to wait. So once again I must ask what exactly do we gain with these changes. If all we want is to make the GnuTLS negotiation wait until Emacs is idle, we could run it from an idle timer, which would have been simpler, and won't require us to have a process object in a strange limbo state that cannot be communicated through.