From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#16026: Gnus shouldn't use old connections Date: Wed, 25 Jan 2017 17:55:28 +0100 Message-ID: <877f5j2i67.fsf@gnus.org> References: <86wqjnwa9u.fsf@somewhere.org> <871u1s38m3.fsf@flea.lifelogs.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485363454 2435 195.159.176.226 (25 Jan 2017 16:57:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2017 16:57:34 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Sebastien Vauban , 16026@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 25 17:57:28 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWQsn-0007ZQ-MP for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jan 2017 17:57:17 +0100 Original-Received: from localhost ([::1]:33023 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWQst-0006XQ-1a for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jan 2017 11:57:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWQsd-0006R4-Oo for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2017 11:57:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWQsc-0007Bq-Te for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2017 11:57:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44855) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWQsc-0007BO-Qw for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2017 11:57:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cWQsY-0007ed-Mz; Wed, 25 Jan 2017 11:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 25 Jan 2017 16:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16026 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 16026-submit@debbugs.gnu.org id=B16026.148536340029368 (code B ref 16026); Wed, 25 Jan 2017 16:57:02 +0000 Original-Received: (at 16026) by debbugs.gnu.org; 25 Jan 2017 16:56:40 +0000 Original-Received: from localhost ([127.0.0.1]:43049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWQsC-0007dc-CF for submit@debbugs.gnu.org; Wed, 25 Jan 2017 11:56:40 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:41496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWQs9-0007dS-Fy for 16026@debbugs.gnu.org; Wed, 25 Jan 2017 11:56:38 -0500 Original-Received: from 2.150.50.220.tmi.telenormobil.no ([2.150.50.220] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWQs5-0006ur-N8; Wed, 25 Jan 2017 17:56:36 +0100 In-Reply-To: <871u1s38m3.fsf@flea.lifelogs.com> (Ted Zlatanov's message of "Wed, 04 Dec 2013 11:04:52 -0500") 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" Xref: news.gmane.org gmane.emacs.bugs:128461 Archived-At: Ted Zlatanov writes: > On Mon, 02 Dec 2013 11:12:20 -0500 Stefan Monnier wrote: > >>>> Gnus should consider a connection as dead if it has been idle for more >>>> than some timeout value (e.g. 5 minutes). This bites me every day when >>>> I wake up my computer: if I just hit `g' to refresh the *Group* buffer, >>>> it *always* hangs (I guess it would timeout but only after a long wait, >>>> like 2h). Instead, I have to go to *Server*, close each server, go back >>>> to *Group* and then hit `g'. [...] > In the Gnus mailing list we discussed an easy solution (just close all > server connections before `g') but providing that as a user-level > defcustom feels like giving up. See http://thread.gmane.org/gmane.emacs.gnus.general/80262/focus=83843 > > I suggested waiting for Lars' opinion. There is `nntp-connection-timeout', and nnimap could have something similar, I guess. The difficulty is in determining what a good timeout should be. If you send an EXPUNGE to an IMAP server, it may legitimately take many seconds, and you get no output from the server while it's doing this. If you kill the connection and reissue the commands, you then get error messages, I think? But issuing EXPUNGE as the first thing after you haven't used a connection in a while is unusual. What usually happens is that you enter an IMAP group, read a few messages, then your ISP decides that you should change your IP number, and then you hit `q' which will normally issue a marks updating command. That should normally give a response within a reasonable time. If a command like that takes more than a few seconds, then we should probably reconnect... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no