From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69218 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.gnus.general Subject: Re: Dealing with hanging IMAP connections Date: Mon, 23 Nov 2009 16:50:50 +0100 Message-ID: <87iqd1b5ph.fsf@randomsample.de> References: <871vjqntqh.fsf@randomsample.de> <87einq6us0.fsf@myles.home.wjsullivan.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258991464 9957 80.91.229.12 (23 Nov 2009 15:51:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2009 15:51:04 +0000 (UTC) Cc: ding@gnus.org To: John Sullivan Original-X-From: ding-owner+M17623@lists.math.uh.edu Mon Nov 23 16:50:57 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 1NCbBp-0000GC-AR for ding-account@gmane.org; Mon, 23 Nov 2009 16:50:57 +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 1NCbBn-0003R1-Ka; Mon, 23 Nov 2009 09:50:55 -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 1NCbBm-0003Qq-KL for ding@lists.math.uh.edu; Mon, 23 Nov 2009 09:50:54 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1NCbBl-0003Sl-1M for ding@lists.math.uh.edu; Mon, 23 Nov 2009 09:50:54 -0600 Original-Received: from m61s02.vlinux.de ([83.151.21.164]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1NCbBk-0001jP-00 for ; Mon, 23 Nov 2009 16:50:52 +0100 Original-Received: from dslc-082-083-037-072.pools.arcor-ip.net ([82.83.37.72] helo=void) by m61s02.vlinux.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1NCbBj-0007TS-99; Mon, 23 Nov 2009 16:50:51 +0100 In-Reply-To: <87einq6us0.fsf@myles.home.wjsullivan.net> (John Sullivan's message of "Sun, 22 Nov 2009 17:48:15 -0500") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) Mail-Copies-To: never Mail-Followup-To: John Sullivan , ding@gnus.org X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69218 Archived-At: John Sullivan writes: > David Engster writes: > >> 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? >> >> Here's the link to Stefan's post: >> >> http://article.gmane.org/gmane.emacs.help/69934 > > Thanks, I'll check that out. > > In these situations, you might also try M-x list-processes, then > (kill-process "imap") or "imap<1>" etc. That's what I often have to do > when I change networks. Ah, thanks! That indeed does the trick. I bound that kill-process command to a key and it works really well. It'd still be nice if Gnus would do that automatically after some time-out is reached, but I can live with manually killing the IMAP process for the time being. :-) Regards, -David