From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69244 Path: news.gmane.org!not-for-mail From: Bojan Nikolic Newsgroups: gmane.emacs.gnus.general Subject: Re: Dealing with hanging IMAP connections Date: Mon, 30 Nov 2009 10:30:02 +0000 Message-ID: <877ht8qp91.fsf@bnikolic.co.uk> 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 1259594515 14635 80.91.229.12 (30 Nov 2009 15:21:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Nov 2009 15:21:55 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17649@lists.math.uh.edu Mon Nov 30 16:21:47 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 1NF84O-00060I-SU for ding-account@gmane.org; Mon, 30 Nov 2009 16:21:45 +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 1NF83o-0003C8-Ge; Mon, 30 Nov 2009 09:21:08 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1NF3b9-0001bD-8D for ding@lists.math.uh.edu; Mon, 30 Nov 2009 04:35:15 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1NF3b5-0005dn-SU for ding@lists.math.uh.edu; Mon, 30 Nov 2009 04:35:15 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1NF3b5-000357-00 for ; Mon, 30 Nov 2009 11:35:11 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NF3az-0001AT-Nm for ding@gnus.org; Mon, 30 Nov 2009 11:35:05 +0100 Original-Received: from 82-35-46-40.cable.ubr02.camd.blueyonder.co.uk ([82.35.46.40]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Nov 2009 11:35:05 +0100 Original-Received: from bojan by 82-35-46-40.cable.ubr02.camd.blueyonder.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Nov 2009 11:35:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 82-35-46-40.cable.ubr02.camd.blueyonder.co.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:5hMIosAvZWBkLFxaxH56+9AILZA= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69244 Archived-At: Frank Schmitt writes: > 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. > > Me too. I use ssl so I have to "killall openssl" in a shell. I resort to this very often too. I always I assumed that this is a bug with openssl, it really ought to figure out that it won't be able to restore its connection and terminate it. One way of working around it would be to shorten the openssl ssl session timeout, but I haven't been able to find the way to do that. Maybe somebody here knows? -- Bojan Nikolic || http://www.bnikolic.co.uk