Gnus development mailing list
 help / color / mirror / Atom feed
From: Kevin Greiner <kevin.greiner@vignette.com>
Subject: Re: [BUG]: Gnus randomly refuse to fetch and display articles
Date: Wed, 13 Oct 2004 08:00:09 -0400	[thread overview]
Message-ID: <ubrf6g75i.fsf@vignette.com> (raw)
In-Reply-To: <plop878yabyu1t.fsf@gnu-rox.org>

Xavier Maillard <zedek@gnu-rox.org> writes:

> On 13 oct 2004, Kevin Greiner wrote:
>
>> Xavier Maillard <zedek@gnu-rox.org> writes:
>> 
>> > On 11 oct 2004, Xavier Maillard wrote:
>> > 
>> > > Hello,
>> > > 
>> > > New problem I have since 2 or 3 days now.
>> > > 
>> > > Sometimes for an unknown reason, I get this backtrace when
>> > > trying to display an article:
>> > > 
>> > > ,----
>> > > > Debugger entered--Lisp error: (error "Server closed
>> > > > connection") signal(error ("Server closed connection"))
>> > > > error("Server closed connection") apply(error "Server
>> > > > closed connection") nntp-report("Server closed
>> > > > connection") nntp-accept-process-output(nil) byte-code("\b
>> > > > =ƒ% gnus-async-wait-for-article(15716)
>> > > > gnus-async-request-fetched-article("nntp+gnu-rox.org:gnus.ding"
>> > > > 15716 #<buffer *Article*>)
>> > > > gnus-request-article-this-buffer(15716
>> > > > "nntp+gnu-rox.org:gnus.ding") gnus-article-prepare(15716
>> > > > nil) gnus-summary-display-article(15716 nil)
>> > > > gnus-summary-select-article(nil nil pseudo)
>> > > > gnus-summary-scroll-up(1)
>> > > > call-interactively(gnus-summary-scroll-up)
>> > > `----
>> > > 
>> > > It doesn't happen every time but in a random fashion. I can
>> > > for example read 10 articles in a row and then, Gnus refuse
>> > > to display one. Dunno what can cause this to happen since I
>> > > have this behavior when plugged or not.
>> > 
>> > Any taker ?
>> > 
>> > I tried to (setq nntp-record... t) and switched to the
>> > corresponding buffer but all I get is:
>> > 
>> > ,----
>> > > 20041012T002908.472 gnu-rox.org *** CALLED nntp-report *** 
>> > `----
>> > 
>> > This is kind of annoying since I don't really know what can
>> > block this.
>> > 
>> > Any help *grantly* appreciated.
>> > 
>> > Hint: I just upgraded my local copy of Gnus from CVS and
>> > still got this after having restarted Gnus.
>> 
>> The problem is that some nntp servers close idle connections to
>> conserve their resources while others punish a client that
>> leaves idle connections open by ignoring future requests. The
>> nntp backend handles both of these problems by wrapping the
>> nntp command logic in the nntp-with-open-group form.
>> 
>> Just guessing but I'd bet that the problem is that
>> gnus-async-wait-for-article binds proc. The
>> nntp-with-open-group recovers from a closed nntp connection by
>> opening a new connection. The gnus-async-wait-for-article
>> nevers sees that new connection because it binds proc before it
>> enters its loop.
>
> Oh yes I see.
>
>> So, try replacing (nntp-accept-process-output proc) in
>> gnus-async-wait-for-article with (nntp-accept-process-output
>> (nntp-find-connection (current-buffer))).
>
> Hmm, looking at the function I see:
>
> (defun gnus-async-wait-for-article (article)
>   "Wait until ARTICLE is no longer the currently-being-fetched article."
>   (save-excursion
>     (gnus-async-set-buffer)
>     (let ((proc (nntp-find-connection (current-buffer)))
> 	  (nntp-server-buffer (current-buffer))
> 	  (nntp-have-messaged nil)
> 	  (tries 0))
>       (condition-case nil
> ...
>
> SHould I need to unbind proc ?

No.  It doesn't hurt to bind it but not use it.

Kevin



  reply	other threads:[~2004-10-13 12:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-11 11:25 Xavier Maillard
2004-10-11 22:35 ` Xavier Maillard
2004-10-13  2:54   ` Kevin Greiner
2004-10-13  7:08     ` Xavier Maillard
2004-10-13 12:00       ` Kevin Greiner [this message]
2004-10-13 14:52         ` Xavier Maillard
2004-10-17 21:47           ` Xavier Maillard
2004-10-19 23:10             ` [SOLVED] (was: [BUG]: Gnus randomly refuse to fetch and display articles) Xavier Maillard

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=ubrf6g75i.fsf@vignette.com \
    --to=kevin.greiner@vignette.com \
    /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).