Gnus development mailing list
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: ding@gnus.org
Subject: Re: Dealing with hanging IMAP connections
Date: Sun, 22 Nov 2009 22:02:16 -0500	[thread overview]
Message-ID: <jwvpr7a2bi4.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <876392f9qd.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Sun, 22 Nov 2009 23:58:02 +0100")

>> 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



      reply	other threads:[~2009-11-23  3:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-22 21:18 David Engster
2009-11-22 22:48 ` John Sullivan
2009-11-23  7:59   ` Frank Schmitt
2009-11-30 10:30     ` Bojan Nikolic
2009-11-23 15:50   ` David Engster
2009-11-29  1:06   ` Ludovic Courtès
2009-11-30  8:53   ` Steinar Bang
2009-11-22 22:58 ` Reiner Steib
2009-11-23  3:02   ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvpr7a2bi4.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).