Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: ronaldf@eml.cc (Ronald Fischer)
Subject: Re: server connection broken - issue reconsidered, new info
Date: 3 Sep 2002 03:00:05 -0700	[thread overview]
Message-ID: <219750c.0209030200.d6f1564@posting.google.com> (raw)
In-Reply-To: <vafadn7fg8k.fsf@lucy.cs.uni-dortmund.de>

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann wrote in message news:<vafadn7fg8k.fsf@lucy.cs.uni-dortmund.de>...
> 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


      parent reply	other threads:[~2002-09-03 10:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m2ptw9ykp2.fsf@karfiol.glp.de>
     [not found] ` <vafvg5x3lbq.fsf@lucy.cs.uni-dortmund.de>
     [not found]   ` <m2lm6shas5.fsf@karfiol.glp.de>
     [not found]     ` <vaffzx0o5sa.fsf@lucy.cs.uni-dortmund.de>
2002-08-28  6:20       ` Ronald Fischer
     [not found]         ` <vafadn7fg8k.fsf@lucy.cs.uni-dortmund.de>
2002-09-03 10:00           ` Ronald Fischer [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=219750c.0209030200.d6f1564@posting.google.com \
    --to=ronaldf@eml.cc \
    /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).