From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tsugutomo.enami@jp.sony.com Newsgroups: gmane.emacs.bugs Subject: bug#18728: 24.0.50; gnus hangs while reading mail from imap server Date: Fri, 24 Oct 2014 13:24:18 +0900 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1414125326 8080 80.91.229.3 (24 Oct 2014 04:35:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Oct 2014 04:35:26 +0000 (UTC) To: <18728@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 24 06:35:17 2014 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 1XhWaq-0000WV-Fm for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Oct 2014 06:35:16 +0200 Original-Received: from localhost ([::1]:44972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhWap-0006EK-Vl for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Oct 2014 00:35:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhWaj-0006As-0m for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2014 00:35:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhWae-0002ux-6P for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2014 00:35:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhWad-0002u3-SG for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2014 00:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XhWac-0003u1-Bp; Fri, 24 Oct 2014 00:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: tsugutomo.enami@jp.sony.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 24 Oct 2014 04:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18728 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 18728-submit@debbugs.gnu.org id=B18728.141412528414959 (code B ref 18728); Fri, 24 Oct 2014 04:35:02 +0000 Original-Received: (at 18728) by debbugs.gnu.org; 24 Oct 2014 04:34:44 +0000 Original-Received: from localhost ([127.0.0.1]:33403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XhWaJ-0003tC-UA for submit@debbugs.gnu.org; Fri, 24 Oct 2014 00:34:44 -0400 Original-Received: from ms6.sony.co.jp ([211.125.136.204]:57249) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XhWaG-0003ss-ML for 18728@debbugs.gnu.org; Fri, 24 Oct 2014 00:34:42 -0400 Original-Received: from mta6.noc.sony.co.jp ([IPv6:2001:cf8:0:192::43]) by ms6.sony.co.jp (R8/Sony) with ESMTP id s9O4YWk4020814 for <18728@debbugs.gnu.org>; Fri, 24 Oct 2014 13:34:32 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.04,778,1406559600"; d="dif'?scan'208";a="42297796" Original-Received: from sigxcpu.sm.sony.co.jp ([43.4.4.150]) by mrelay6.noc.sony.co.jp with ESMTP; 24 Oct 2014 13:34:32 +0900 Original-Received: by sigxcpu.sm.sony.co.jp (Postfix, from userid 8324) id C2DE82DF7C; Fri, 24 Oct 2014 13:24:18 +0900 (JST) In-Reply-To: (Ted Zlatanov's message of "Thu, 16 Oct 2014 09:22:13 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:95010 --=-=-= Content-Type: text/plain Ted Zlatanov writes: > Could you prepare a patch against Emacs trunk or (preferably) Gnus > master[1], incorporating Andreas' suggestion and with a ChangeLog entry? > I'll apply it to Gnus master and it will make its way to Emacs trunk > shortly thereafter. Ok, patch against today's gnus.git is attached. I've tested by changing nnimap-keepalive and nnimap-keepalive-timer to send noop command more frequently. enami. --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=gnus.git.dif Content-Description: nnimap-wait-for-response fix to ignore NOOP response. diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 43c5bfc..2156301 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-10-24 enami tsugutomo + + * nnimap.el (nnimap-wait-for-response): Ignore NOOP response requested + to keep connection open. + 2014-10-20 Glenn Morris * Merge in all changes up to 24.4 release. diff --git a/lisp/nnimap.el b/lisp/nnimap.el index ad48d47..7992151 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -1888,7 +1888,7 @@ Return the server's response to the SELECT or EXAMINE command." (while (and (not (bobp)) (progn (forward-line -1) - (looking-at "\\*")))) + (looking-at "\\*\\|[0-9]+ OK NOOP")))) (not (looking-at (format "%d .*\n" sequence))))) (when messagep (nnheader-message-maybe --=-=-=--