From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/1034 Path: news.gmane.org!not-for-mail From: ronaldf@eml.cc (Ronald Fischer) Newsgroups: gmane.emacs.gnus.user Subject: Re: server connection broken - issue reconsidered, new info Date: 3 Sep 2002 03:00:05 -0700 Organization: http://groups.google.com/ Message-ID: <219750c.0209030200.d6f1564@posting.google.com> References: NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138667876 9456 80.91.229.2 (31 Jan 2006 00:37:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:37:56 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:28:32 2006 Original-Path: quimby.gnus.org!news.ccs.neu.edu!news.dfci.harvard.edu!news.cis.ohio-state.edu!newsfeed.berkeley.edu!ucberkeley!logbridge.uoregon.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: 193.149.53.186 Original-X-Trace: posting.google.com 1031047205 3849 127.0.0.1 (3 Sep 2002 10:00:05 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 3 Sep 2002 10:00:05 GMT Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:1174 Original-Lines: 25 X-Gnus-Article-Number: 1174 Tue Jan 17 17:28:32 2006 Xref: news.gmane.org gmane.emacs.gnus.user:1034 Archived-At: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann wrote in message news:... > But I think it's pretty safe to say that if you haven't tried to set > up this ssh thing, then Gnus will not do the ssh thing. Well, this leaves as most likely explanation, that the News server itself closes the connection after a period of inactivity. I have now, thanks to the previous posts, the following near perfect solution, that, if I see that Gnus "hangs", I hit a key which reopens the server. But Netscape Messenger obviously does this automatically, so I would be interested to know if I can teach this to Gnus too. In other words, is there a hook which is executed before *every* access of the News server (but not for gnus-close-server and gnus-check-server)? I could then call there my function for re-opening the server, which currently looks like this (simply copied over from the friendly soul who posted it in this ng): (defun retry-news () "Close news server then try to reopen every 30 seconds until connection (interactive) (gnus-close-server gnus-current-select-method) (while (not (gnus-check-server)) (sleep-for 30) )) Or is there a better way to achieve my goal? Ronald