From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Derek Zhou Newsgroups: gmane.emacs.bugs Subject: bug#40665: 28.0.50; tls hang on local ssl Date: Wed, 22 Apr 2020 16:57:07 +0000 (UTC) Message-ID: <86v9lrihlp.fsf@mail.3qin.us> References: <86wo6fo78r.fsf@mail.3qin.us> <86d086dkgq.fsf@mail.3qin.us> <86eeslecnf.fsf@mail.3qin.us> <86blnnebh3.fsf@mail.3qin.us> <86zhb5hecx.fsf@mail.3qin.us> <86eeshpqdb.fsf@mail.3qin.us> <86zhb5q7sw.fsf@mail.3qin.us> <86y2qorj76.fsf@mail.3qin.us> <86368w1tge.fsf@mail.3qin.us> <864ktcfpm5.fsf@mail.3qin.us> <86368wfp6d.fsf@mail.3qin.us> <86y2qniu5m.fsf@mail.3qin.us> <86wo67im9w.fsf@mail.3qin.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="2843"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.2.0; emacs 27.0.91 Cc: 40665@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 22 18:58:17 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jRIhP-0000W7-Ss for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Apr 2020 18:58:11 +0200 Original-Received: from localhost ([::1]:54470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRIhP-0006Wx-02 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Apr 2020 12:58:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54280) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRIhG-0006Wd-LC for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2020 12:58:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRIhG-0008Lb-5J for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2020 12:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRIhF-0008JN-Nh for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2020 12:58:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jRIhF-0008OE-LZ for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2020 12:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Derek Zhou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Apr 2020 16:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40665 X-GNU-PR-Package: emacs Original-Received: via spool by 40665-submit@debbugs.gnu.org id=B40665.158757463532194 (code B ref 40665); Wed, 22 Apr 2020 16:58:01 +0000 Original-Received: (at 40665) by debbugs.gnu.org; 22 Apr 2020 16:57:15 +0000 Original-Received: from localhost ([127.0.0.1]:53070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRIgV-0008NC-FW for submit@debbugs.gnu.org; Wed, 22 Apr 2020 12:57:15 -0400 Original-Received: from xtrwkvxq.outbound-mail.sendgrid.net ([167.89.24.164]:11544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRIgT-0008Mx-8V for 40665@debbugs.gnu.org; Wed, 22 Apr 2020 12:57:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=3qin.us; h=references:from:subject:in-reply-to:mime-version:to:cc:content-type: content-transfer-encoding; s=s1; bh=Ji+cDuYhzMEhG6Ui37pk9vZ4Mcpx0+y10TYq6Jd6o8Y=; b=mThOVDfHdjrcpK/XGVgppbGow4kKsYhnVf9O5GLl2w7iRndgRMKNso/0RPlL9+QZQNHC Jgk1fWEzMQEsPgGxOPhsUouBHJ6nLR6V7NCmVuId1/sqfYv8KOTAX8qHLB8unCKYXOnDLR hHPbvCAfABV882BlTH3oV+piXM3rq6Ycc= Original-Received: by filter0072p3las1.sendgrid.net with SMTP id filter0072p3las1-6642-5EA07763-27 2020-04-22 16:57:07.141620472 +0000 UTC m=+586511.280732613 Original-Received: from mail.3qin.us (unknown) by ismtpd0006p1sjc2.sendgrid.net (SG) with ESMTP id Fhxh8NKzRNeCnsSHgiKTEg Wed, 22 Apr 2020 16:57:06.927 +0000 (UTC) Original-Received: from derek by mail.3qin.us with local (Exim 4.92) (envelope-from ) id 1jRIgM-0000cy-Au; Wed, 22 Apr 2020 12:57:06 -0400 In-reply-to: X-SG-EID: nTv1epxWypfl0GRwygk8G5JZcpWJeBCcUM8ly3qzpbbVyfDgYog/9eXX7sL09UAmQpeOe7LuP41oLk2ULETDh0QNiFqNOQtMLQhBayQCTs+wa0eDr4RDBdNqTgiDl1L3iF+9OgJZOFQafc6yG5fY4Ab0a13pBVi72aYOPlIAmEUosZyrsjSV+DvOMqXSdPFpNr4+O7DNAd8Vpn49Sfz0JLsnf/5Ssmtp5n5rgQgFrbE= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178811 Archived-At: Robert Pluim writes: > That=CA=BCs not quite it. 'wait_reading_process_output' broadly does one = of: > > 1. Read from some fds, give me what you have or timeout > 2. Read from some fds, wait until you have something for this > specific process, or timeout > 3. Read *only* for this process, wait until you have something, or > timeout > > [1] is very common, [3] is not. The case I=CA=BCm discussing is [2] (via > accept-process-output), and as it stands you've transformed it into a > form of [1] (and yes, in [3] the select is only done for the fd for a > specific process). Let me read the code more carefully to see what to do. > > OK, that does make sense, and might even be more correct, but it=CA=BCs a > bigger change. You'll need more than just me to agree with it. I'll get back to you with a patch addressing both points later, maybe tonight. Derek