From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24201: 25.1.50; TLS connections sometimes hang Date: Fri, 28 Jun 2019 09:19:20 +0300 Message-ID: <83lfxmi653.fsf@gnu.org> References: <83d1j8e9c0.fsf@gnu.org> <83shg5z32d.fsf@gnu.org> <87efrp2qw0.fsf@mouse> <83tw0lxjt3.fsf@gnu.org> <6e9f3b6c-43df-bf95-d346-56c93c61b4d7@cs.ucla.edu> <83o9kk96ez.fsf@gnu.org> <83h8qc92hc.fsf@gnu.org> <834l4en63b.fsf@gnu.org> <83h88cjoiv.fsf@gnu.org> <831rzfjh3i.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="30240"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 24201@debbugs.gnu.org, eggert@cs.ucla.edu To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 28 08:20:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hgkF0-0007lu-OQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jun 2019 08:20:10 +0200 Original-Received: from localhost ([::1]:57190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgkEz-0005ON-NV for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jun 2019 02:20:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37389) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgkEt-0005O4-Bl for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 02:20:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgkEs-0002jE-9T for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 02:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54953) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgkEs-0002j8-5U for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 02:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hgkEr-00030F-WB for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 02:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Jun 2019 06:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24201 X-GNU-PR-Package: emacs Original-Received: via spool by 24201-submit@debbugs.gnu.org id=B24201.156170278111510 (code B ref 24201); Fri, 28 Jun 2019 06:20:01 +0000 Original-Received: (at 24201) by debbugs.gnu.org; 28 Jun 2019 06:19:41 +0000 Original-Received: from localhost ([127.0.0.1]:40264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgkEX-0002zZ-78 for submit@debbugs.gnu.org; Fri, 28 Jun 2019 02:19:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgkEV-0002zN-HH for 24201@debbugs.gnu.org; Fri, 28 Jun 2019 02:19:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hgkEQ-0002Oq-Ae; Fri, 28 Jun 2019 02:19:34 -0400 Original-Received: from [176.228.60.248] (port=2617 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hgkEP-0001YM-Rg; Fri, 28 Jun 2019 02:19:34 -0400 In-reply-to: (message from Lars Ingebrigtsen on Thu, 27 Jun 2019 21:28:34 +0200) 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: 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:161685 Archived-At: > From: Lars Ingebrigtsen > Cc: 24201@debbugs.gnu.org, eggert@cs.ucla.edu > Date: Thu, 27 Jun 2019 21:28:34 +0200 > > >> (while (and (memq (process-status stream) '(open run)) > >> (not (re-search-forward end-of-command nil t))) > >> (accept-process-output stream 0.05) > >> (goto-char start)) > > > > Any idea why this loops? Does the other end not respond or something? > > I'm not sure -- I haven't been able to debug that at all. Since C-g > doesn't work (and it happens so rarely and I have to catch it before the > peer hangs up), it makes it awkward... You could try using debug-on-event in conjunction with SIGUSR1/SIGUSR2 to enter the debugger when you need. > > Is inhibit-quit in fact nil or not inside this loop? > > Looking at the code, I can't see any signs of it being inhibited here, > but I'm waiting for the next time it happens so that I can inspect with > gdb... You could also add a call to 'message' in that loop to print the value of the flag.