Gnus development mailing list
 help / color / mirror / Atom feed
From: lee <lee@yun.yagibdah.de>
To: ding@gnus.org
Subject: Re: Gnus hanging
Date: Fri, 08 Jul 2011 14:05:01 +0200	[thread overview]
Message-ID: <87pqllq8pe.fsf@yun.yagibdah.de> (raw)
In-Reply-To: <m27h7tm3bp.fsf@pluto.luannocracy.com> (Dave Abrahams's message of "Fri, 08 Jul 2011 07:14:50 -0400")

Dave Abrahams <dave@boostpro.com> writes:

> on Wed Jul 06 2011, Richard Riley <rileyrg-AT-googlemail.com> wrote:
>
>> I'm frequently on a wireless connection that fails. Gnus hangs if I do a
>> "g" (or more accurately C-u 5 g) in the group buffer to get new headers
>> if the link has gone down and come back up again - I assume because of
>> non valid network stream handles or whatever. What would be the best way
>> to ensure Gnus closes all network links first and reconnects prior to
>> the refresh other than quitting or closing/opening from the server
>> buffer?
>
> +1
>
> Long-standing issue for me, too.

Trying to trace the problem, I've been watching connections with
"netstat -t" and found that gnus hangs when the connection to the news
server is closed.  Gnus reopens the connection and hangs.  I've modified
the entry for the news server, adding `nntp-connection-timeout' for a
timeout of 15 seconds:


(add-to-list 'gnus-secondary-select-methods
	     '(nntp "news1.open-news-network.org"
		    (nntp-connection-timeout 15)))


Because it takes two hours for the connection to time out, I haven't
been able to see if it works yet.  If it doesn't work, an alternative
might be something like "(gnus-demon-add-handler 'gnus-demon-scan-news
10 nil)" to keep the connection open or "(gnus-demon-add-handler
'gnus-demon-close-connections 5 nil)" to close it before it times out,
in which case gnus might gracefully reopen it.

Perhaps you can come up with something similar for your POP3 and IMAP
connections as a workaround?  Closing the connections after a short time
or idle period might work for POP3 and IMAP ...

BTW, see http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9020 .



  parent reply	other threads:[~2011-07-08 12:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-06 11:04 Richard Riley
2011-07-08 11:14 ` Dave Abrahams
2011-07-08 11:46   ` Antoine Levitt
2011-07-08 12:05   ` lee [this message]
2011-07-08 12:54     ` Richard Riley
2011-07-08 16:58       ` lee
2011-07-19 16:22         ` Lars Magne Ingebrigtsen
2011-07-12 17:43   ` Richard Riley
2011-07-13  1:15     ` lee
2011-07-19 16:20 ` Lars Magne Ingebrigtsen
2011-07-19 17:29   ` lee
2011-07-19 17:30     ` Lars Magne Ingebrigtsen
  -- strict thread matches above, loose matches on Subject: below --
1996-07-19  0:13 Gnus v5.2.37 is released Lars Magne Ingebrigtsen
1996-07-19 17:19 ` GNUS hanging Ralph Loader

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=87pqllq8pe.fsf@yun.yagibdah.de \
    --to=lee@yun.yagibdah.de \
    --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).