From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69215 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.gnus.general Subject: Re: Dealing with hanging IMAP connections Date: Sun, 22 Nov 2009 22:02:16 -0500 Message-ID: References: <871vjqntqh.fsf@randomsample.de> <876392f9qd.fsf@marauder.physik.uni-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258945437 15571 80.91.229.12 (23 Nov 2009 03:03:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2009 03:03:57 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17620@lists.math.uh.edu Mon Nov 23 04:03:50 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1NCPDS-000864-72 for ding-account@gmane.org; Mon, 23 Nov 2009 04:03:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1NCPCX-00074t-7R; Sun, 22 Nov 2009 21:02:53 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1NCPCU-00074e-ID for ding@lists.math.uh.edu; Sun, 22 Nov 2009 21:02:50 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1NCPCT-0000ZL-3Q for ding@lists.math.uh.edu; Sun, 22 Nov 2009 21:02:50 -0600 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1NCPCS-0008Ae-00 for ; Mon, 23 Nov 2009 04:02:48 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAD2KCUvO+IIa/2dsb2JhbACBTdIBhDwEigI X-IronPort-AV: E=Sophos;i="4.47,268,1257138000"; d="scan'208";a="49824235" Original-Received: from 206-248-130-26.dsl.teksavvy.com (HELO ceviche.home) ([206.248.130.26]) by ironport2-out.pppoe.ca with ESMTP; 22 Nov 2009 22:02:16 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id B9543B40C9; Sun, 22 Nov 2009 22:02:16 -0500 (EST) In-Reply-To: <876392f9qd.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Sun, 22 Nov 2009 23:58:02 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69215 Archived-At: >> On my notebook, which is connected via WLAN, my IMAP connection hangs >> from time to time. When this happens, I completely have to restart Gnus, >> which I find pretty annoying. Stefan Monnier posted a patch to >> emacs-help which will open a new connection when you interrupt the >> current IMAP operation with C-g. I've applied this patch to my >> installation and find it very useful. I think this or something similar >> should be applied to imap.el, preferably as a customizable option? > Usually Stefan has a reason not to install a patch upstream, e.g. if > he knows about problems with the patch or if he thinks the solution > isn't clean. Stefan? (--> Cc-ed). Well, the reason is that I don't know that it's the right solution. It feels like a workaround more than anything. If the problem is in gnutls or openssl, then it's maybe OK to have a workaround, but otherwise we'd want a real fix. But even if a workaround is OK, I'm not sure this one is the right one. I just don't understand enough of Gnus's convention for how to handle connection deaths, timeouts, and automatic reconnects to know where it should be handled. >> Here's the link to Stefan's post: >> http://article.gmane.org/gmane.emacs.help/69934 > [ What's all this report-emacs-bug/backtrace output about? ] IIRC it's a backtrace that shows a call to accept-process-output with inhibit-quit bound to t, i.e. a call that could freeze Emacs hard. That's why the patch includes a with-local-quit. Stefan