Article View: news.software.nntp
Article #43873Re: Confused about hiscachesize (inn.conf)
From: Russ Allbery
Date: Thu, 03 Feb 2000 00:00
Date: Thu, 03 Feb 2000 00:00
65 lines
3785 bytes
3785 bytes
Ronald Hello <hello@cs.utwente.nl> writes:
> Hiscachesize is default 0. The manual page (inn.conf) states that there
> will only be a history-cache when you set hiscachesize to a positive
> number. But innreport gives History cache statistics even when
> hiscachesize is set to 0.
It will report timer statistics anyway since the timer isn't disabled when
the cache is turned off (like it probably should be). It shouldn't
generate hit/miss statistics; if it is, then something somewhere is
turning the cache on.
Anyway, unless you have a very small site or only one incoming feed, you
almost certainly want the history cache.
> What's the story about noresendid (incoming.conf)? The term seems to
> suggest that noresendid: false means you send 431 responses, the comment
> in incoming.conf (and the manual page) seems to suggest you have to set
> noresendid to true to send 431 responses. So what is the better setting
> and what does it do?
Yet more evidence that as a general rule of thumb options should *always*
be phrased as positive rather than negated descriptions, since otherwise
you're constantly dealing with double-negatives. :/
The behavior of INN is as follows:
noresendid == false 431 replies (deferrals) are sent
noresendid == true 431 replies (deferrals) are NOT sent
You want to set noresendid to true for Diablo peers, at least older
versions, since they do precisely the wrong thing with deferrals.
To understand what the setting is, consider the following situation. You
have two incoming peers, both of which are getting ready to offer you an
article in streaming mode. The first sends you a CHECK <message-id>
message, to which you respond affirmatively (i.e., you don't already have
the article). Then, before that peer sends you the article with TAKETHIS,
you receive a CHECK <message-id> from the second peer for the same
message. What response do you send to the second peer?
If deferrals are enabled (noresendid == false), you'll send a 431 deferral
telling that peer that you may or may not want the article; try again
later. Chances are that when it retries, you will have received the
article from the first peer and you'll just refuse it. But if the first
peer dies before it ever sends you the article, this way you can still get
it from the second peer.
If deferrals are disabled, I believe you'll refuse the article from the
second peer, which means there's a possibility you'll lose news if the
first peer dies before sending you the article.
Diablo, upon receiving a deferral, turns around and immediately sends the
article via TAKETHIS, which is basically exactly what you don't want.
(Chances are extremely high in practice that the first peer will come
through with the article.)
I've added an explanation of this to the INN FAQ, which I need to post
more often. Thanks for reminding me of that; I'll post it now and then
set it up for autoposting (I forgot to do that previously).
--
Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<yliu06si2c.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<87bhoa$el6$1@ares.cs.utwente.nl>Show Full Headers
Complete Article Headers
Message-ID: <yliu06si2c.fsf@windlord.stanford.edu> Subject: Re: Confused about hiscachesize (inn.conf) Date: Thu, 03 Feb 2000 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <87bhoa$el6$1@ares.cs.utwente.nl> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 581034442 Content-Type: text/plain; charset=us-ascii Organization: The Eyrie Mime-Version: 1.0 User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne) Newsgroups: news.software.nntp