From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#24201: 25.1.50; TLS connections sometimes hang Date: Thu, 27 Jun 2019 12:34:28 +0200 Message-ID: References: <83mvicebin.fsf@gnu.org> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="202006"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 24201@debbugs.gnu.org, eggert@cs.ucla.edu To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 27 12:35:18 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 1hgRkM-000qIq-EW for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jun 2019 12:35:18 +0200 Original-Received: from localhost ([::1]:48424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgRkL-0007Df-1H for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jun 2019 06:35:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50919) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgRk7-0007Bb-Ut for bug-gnu-emacs@gnu.org; Thu, 27 Jun 2019 06:35:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgRk6-0001y7-Nj for bug-gnu-emacs@gnu.org; Thu, 27 Jun 2019 06:35:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52171) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgRk6-0001xv-JY for bug-gnu-emacs@gnu.org; Thu, 27 Jun 2019 06:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hgRk6-0000DO-E9 for bug-gnu-emacs@gnu.org; Thu, 27 Jun 2019 06:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jun 2019 10:35:02 +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.1561631674789 (code B ref 24201); Thu, 27 Jun 2019 10:35:02 +0000 Original-Received: (at 24201) by debbugs.gnu.org; 27 Jun 2019 10:34:34 +0000 Original-Received: from localhost ([127.0.0.1]:37482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgRje-0000Cf-1u for submit@debbugs.gnu.org; Thu, 27 Jun 2019 06:34:34 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:39026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgRjc-0000CX-DH for 24201@debbugs.gnu.org; Thu, 27 Jun 2019 06:34:32 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hgRjY-00045O-7s; Thu, 27 Jun 2019 12:34:30 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUuNC0RFxeinYRjYlIE BQXj5tyl3TBQAAACTElEQVQ4jXWTTXLkIAyFhdWzlwIHcEPYA+rs7QoHyLjL979KHnZ1J6nMsGla H3r6NfXnyfv3Q/8F7+kGo91+e7xatf767n+DmlpI9e9vcEvcZ04n2GKO8QSXy6V0puUEKbUH+JFV S1uKbdwoPs8QMsv31saVfkS8V2qJ/wE+HHEhajF/B1tORWFvNtl3kCOTkhGULLYvkCIee8jQy1Zi egL8Yaqe6sScET0+wL3EGVJSmN2ESsoDpGKFHII4my1PGz3AoS9tdm66tx310yMECRze7mWhKbWc 2hcg11F2UZnQl7k9pUqlQFYcEZmP8zMrxLYLEQ9FE/TkIYWH5ApAcUqKWiiewPCURKQ6EROjfHQS x4a4qrouqGaiifb5DfZYHApUZe2qvUsx2q8ZGxBnNXPaV4wYft17yvDYIpvwAH0NK/RUGrU2dobc iBHWVdyR33TWkfBYkWhfkQDbSKTRuU3wHtKrOhJOzpAVcsr7MC8OUiLsS0pcmRAi7lddlWMI66jR LPLVkw2tKxK0ViG1IBZHnoVekNT+0TumlEZ14otPbETveTuAeqsO5SEKlwH0z932KyrjNmvAr4qz xh7RnGu30INyogFcEB8Len1Bw9GI0AVzhUNf15cEKQ50KhxgFUWzPFvDCshh7n0ZjbGCKoktU1jK 6PRwGvMo6SLoW/v61Eav8DilIE4ZQCUMG55hPzT4ecHNIkCpdXJonWoy1rX4wmQtk1bP3pv3IzD2 mj0XFAhgZr4aTxCoFQOeJuwex2Nl9JyT+jHI40rtE1wXxbz7f8U6AAAAAElFTkSuQmCC In-Reply-To: <83h88cjoiv.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 26 Jun 2019 19:32:24 +0300") 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:161572 Archived-At: Eli Zaretskii writes: > OK, so that Ffuncall calls network-stream-get-response. the next > question is what Lisp code runs 2 stack frames above, i.e. which Lisp > code calls some other Lisp code, which calls > network-stream-get-response? Can you spot that? The offending code > should be somewhere in network-stream-get-response or functions it > calls. > > Once we identify the Lisp code which loops, we need to try to figure > out why it loops. I'm pretty sure it's this: (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)) But I do not understand why C-g doesn't work: I've tried to follow the call chain, and I can see no instances of binding `inhibit-quit'... If C-g worked, it'd be easier to debug... >> And upon continuing, Emacs un-stuck with the following message: >>=20 >> Error running timer =E2=80=98gnus-async-prefetch-article=E2=80=99: (erro= r "Server >> closed connection") > > So probably we loop until the other side closes the connection? Yup. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no