🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
11 messages
11 total messages Started by Joshua Sun, 30 Dec 2001 07:58
Does the server has to save the full "References: " field?
#55793
Author: Joshua
Date: Sun, 30 Dec 2001 07:58
6 lines
1218 bytes
When a original article is replied to much,the "References" field will
becomes too long. The server has to save the full "References" information
into the Header?


Re: Does the server has to save the full "References: " field?
#55791
Author: Jeffrey M. Vinocur
Date: Sun, 30 Dec 2001 09:52
14 lines
1422 bytes
In article <a0mi6g$qqr$2@mail.cn99.com>, Joshua <JoshuaIIII@hotmail.com> wrote:
>When a original article is replied to much,the "References" field will
>becomes too long. The server has to save the full "References" information
>into the Header?

No -- it is up to the client to wrap or trim References as
appropriate.  The server never has to do anything special with
References.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Does the server has to save the full "References: " field?
#55797
Author: Frank Durda IV
Date: Sun, 30 Dec 2001 19:51
40 lines
2804 bytes
Joshua <JoshuaIIII@hotmail.com> wrote:
: When a original article is replied to much,the "References" field will
: becomes too long. The server has to save the full "References" information
: into the Header?

Technically, transit servers aren't supposed to touch any headers other
than Path: and replace Xref:, but the standard doesn't say what the
originating server can or can't do to the References: line prior to
propagating a given article.

On messages our servers received via "POST", if the References: line exceeds
512 bytes, it takes the oldest message-IDs in the References line and
discards them, trimming the line to just under 512 bytes total.  We also
insert a header following the References: line indicating that the server
did trimming:

X-A-Notice: References line has been trimmed due to 512 byte limitation

Typically, 512 bytes allows for (at minimum) the four most-recent message-IDs,
so a given article will still thread correctly in client newsreaders unless
all four of those referenced messages are missing at some server.

On reception of an article from outside, we shove the entire References:
content into the overview database, although we have considered truncating
there to 512 bytes as well.  In my opinion, this would be allowable since it
doesn't change the article should it propagate further.  Having a shorter
list of references in the overview data also should not affect or confuse
newsreaders, since newsreaders typically use either XOVER or HEAD to obtain
the references to perform threading, but they don't use reference data from
both commands in the same session.



					Frank Durda IV
					Airnews.net News Service
					Internet America
					Copr. 2001, all rights reserved.


Re: Does the server has to save the full "References: " field?
#55798
Author: J.B. Moreno
Date: Sun, 30 Dec 2001 20:43
37 lines
2693 bytes
In article
<89D4B9B30FF4B74D.88112137168FC760.06FBECD6A13DF2D8@lp.airnews.net>,
Frank Durda IV <uhclem.jan02@nemesis.lonestar.org> wrote:

> Joshua <JoshuaIIII@hotmail.com> wrote:
> : When a original article is replied to much,the "References" field will
> : becomes too long. The server has to save the full "References" information
> : into the Header?
> 
> Technically, transit servers aren't supposed to touch any headers other
> than Path: and replace Xref:, but the standard doesn't say what the
> originating server can or can't do to the References: line prior to
> propagating a given article.

Servers aren't supposed to be modifying /any/ headers; with the
possible exception of Message-ID and Date.

> On messages our servers received via "POST", if the References: line exceeds
> 512 bytes, it takes the oldest message-IDs in the References line and
> discards them, trimming the line to just under 512 bytes total.  We also
> insert a header following the References: line indicating that the server
> did trimming:
> 
> X-A-Notice: References line has been trimmed due to 512 byte limitation

If you feel that you absolutely /must/ do this, you should at least do
it in way that does less damage -- i.e. start your trimming at the next
to oldest id, not the oldest.

(Joshua, this is in no way a recommendation that you follows Airnews
example, I /strongly/ recommend that you leave the References header
alone, if it exceeds 1000 bytes then reject the article, but don't trim
it yourself).

-- 
J.B Moreno
Re: Does the server has to save the full "References: " field?
#55801
Author: Jeremy
Date: Mon, 31 Dec 2001 00:09
13 lines
1254 bytes
Frank Durda IV  <uhclem.jan02@nemesis.lonestar.org> wrote:

> On messages our servers received via "POST", if the References: line
> exceeds 512 bytes, it takes the oldest message-IDs in the References
> line and discards them, trimming the line to just under 512 bytes
> total.

You're supposed to keep the first (root) message-id, and start trimming
with the second one.

-- 
Jeremy  |  jeremy@exit109.com
Re: Does the server has to save the full "References: " field?
#55805
Author: Curt Welch
Date: Mon, 31 Dec 2001 01:45
32 lines
2801 bytes
Jeremy <jeremy@exit109.com> wrote:
> Frank Durda IV  <uhclem.jan02@nemesis.lonestar.org> wrote:
>
> > On messages our servers received via "POST", if the References: line
> > exceeds 512 bytes, it takes the oldest message-IDs in the References
> > line and discards them, trimming the line to just under 512 bytes
> > total.
>
> You're supposed to keep the first (root) message-id, and start trimming
> with the second one.

Yeah, I was surprised by your (Frank's) post that you were blantely
throwing away the first ID.  Have you not seen the various standards on the
correct way to trim References: lines?  Newsreaders can use the first ID to
identify the root of the tree and to make sure that all branches show up in
the same thread even after the root portion of an old thread has expired.
So you should keep the first and start tossing beginning with the second.

And nobody suggests trimming at 512.  Most people seem to believe that 1000
bytes (after unfolding) minus a few (for CR LF NULL) is the correct size to
trim to because that was(is?) inn's limit.

However, I do agree that trimming at post time is unlikely to cause any
real problems, and even trimming for the overview DB is unlikley to cause
any real problems.  Even less for a custom server which you will always
have the power to fix in a days notice if it did become a problem.  But I
don't see it as the "correct" thing to do.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Does the server has to save the full "References: " field?
#55806
Author: Andrew - Supernews
Date: Mon, 31 Dec 2001 01:59
72 lines
4715 bytes
In article <301220011543570175%planb@newsreaders.com>, J.B. Moreno wrote:
> Servers aren't supposed to be modifying /any/ headers; with the
> possible exception of Message-ID and Date.

!!!

Those are the two headers that the server ABSOLUTELY MUST NOT MODIFY. They
are the core of the loop-prevention mechanism.

Yes, I know there are sites that think that they know better and like to
force the message-id; I would never consider actually _using_ any of those
sites for exactly that reason. Client-supplied message-ids are extremely
useful for clients that know what to do with them (especially scoring on
followups, which is a must-have for reading any even moderately busy
newsgroup). This is all on top of the fact that users can and will find
inventive ways to re-inject old news regardless of what precautions you
take to prevent it; preserving the message-id is the absolute best way
of preventing this from doing damage.

Clobbering the Date is a more subtle problem; it causes spews of articles
which are old enough to have expired from history but which are re-injected
for whatever reason. The boneheaded behaviour of early Typhoon versions
(which overwrote Date by default) caused a _very_ large number of spewing
incidents; this phenomenon can _still_ be seen on a regular basis from any
site that clobbers the Date header. (In fact, I currently see a more or
less continuous stream of articles recycled, with the same Message-ID but
different Date, at periods of around 4-6 weeks.)

There is NO EXCUSE for modifying a Date header. If it's not valid, you
should reject the post. If it's more than a day in the future, or older
than the depth of your history file, then reject the post. But _don't_
fall into the trap of thinking that it's somehow "not important" or that
you can "fix" the behaviour of broken clients or PC's with broken clocks
and no time synchronisation.

>[Frank Durda IV] 
>> On messages our servers received via "POST", if the References: line exceeds
>> 512 bytes, it takes the oldest message-IDs in the References line and
>> discards them, trimming the line to just under 512 bytes total.  We also
>> insert a header following the References: line indicating that the server
>> did trimming:
>> 
>> X-A-Notice: References line has been trimmed due to 512 byte limitation

I looked for articles with this header. The first one I found, the
parent article had 9 references, so the one I found should have had 10;
in fact, your server had cut it down to the last one only. Stupid.

Servers should not try and restrict clients this way. It is quite normal
for References lines to be longer than 512; it doesn't start to be a
significant issue until they reach 1024 (yes, I'm aware of the bug in some
old clients that assumed that the NNTP 512-byte limit applied to article
lines and not just to commands and responses). I occasionally see articles
arriving with slightly longer References, but not much.

> (Joshua, this is in no way a recommendation that you follows Airnews
> example, I /strongly/ recommend that you leave the References header
> alone, if it exceeds 1000 bytes then reject the article, but don't trim
> it yourself).

Servers should handle arbitrary length headers in articles received from
other servers (though INN's 1024-byte limit is likely to remain an issue
for the forseeable future, even if it gets fixed in new code). (Though we
do have a limit of 64k for the total overview data for one article.)
For local posts, you probably want to prevent excessively long headers,
but rejecting the article is the way to do that, not trying to trim the
headers.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Re: Does the server has to save the full "References: " field?
#55811
Author: Curt Welch
Date: Mon, 31 Dec 2001 03:28
30 lines
2808 bytes
andrew@supernews.com wrote:
> In article <301220011543570175%planb@newsreaders.com>, J.B. Moreno wrote:

> > (Joshua, this is in no way a recommendation that you follows Airnews
> > example, I /strongly/ recommend that you leave the References header
> > alone, if it exceeds 1000 bytes then reject the article, but don't trim
> > it yourself).
>
> Servers should handle arbitrary length headers in articles received from
> other servers (though INN's 1024-byte limit is likely to remain an issue
> for the forseeable future, even if it gets fixed in new code).

The nnrpd line length limit in INN 1.7.2 was 1000 bytes for any line in the
data for a POST command.  But the READline() code had an off-by-one issue
which made the real limit 999 bytes which was the limit for the entire line
including the CR LF.  So, for a single-line References: header, newsreaders
must keep it under 997 before you add the CR LF.  If not, the post will be
rejected (which is a bitch for the user but not for the rest of Usenet).

On the code which reads articles and un-folds long lines, I believe inn
has a 1024 byte limit and if you exceed that, I'm not sure what happens,
but I suspect the article is rejected if the header is one of the headers
that INN checks (and References: is one of those).  And that might be a
1024 limit for just the data for the header (not including the
References:).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Does the server has to save the full "References: " field?
#55812
Author: J.B. Moreno
Date: Mon, 31 Dec 2001 07:28
19 lines
1859 bytes
In article <slrna2vhjn.1grc.andrew+nonews@trinity.supernews.net>, 
 Andrew - Supernews <andrew+nonews@supernews.com> wrote:

> J.B. Moreno wrote:
> > Servers aren't supposed to be modifying /any/ headers; with the
> > possible exception of Message-ID and Date.
> 
> !!!
>  
> Those are the two headers that the server ABSOLUTELY MUST NOT MODIFY.
> They are the core of the loop-prevention mechanism.

OK.  No argument.  I don't think that they should be modified, just
that they are the ones that *do* get modified by people who think they
"must" (however wrong they are).

-- 
J.B Moreno
Re: Does the server has to save the full "References: " field?
#55813
Author: Andrew - Supernews
Date: Mon, 31 Dec 2001 11:16
20 lines
2032 bytes
In article <N.20011231.krbx@sisyphus.demon.co.uk>, Dave Sparks wrote:
> andrew+nonews@supernews.com (Andrew - Supernews) said:
>> Servers should not try and restrict clients this way. It is quite normal
>> for References lines to be longer than 512; it doesn't start to be a
>> significant issue until they reach 1024 ...
> 
> I've had problems with References: headers which were created with more than
> 512 bytes: the messages were fetched using (IIRC) nntpget (INN 2.2) which
> truncated them to just less than 512 bytes then added CR-LF.

hmm, haven't had occasion to use nntpget, but looking at the code it is
suffering from the standard mistake of using NNTP_STRLEN as the buffer
size limit for actual data transfer as well as for NNTP response lines.
This is a serious bug; it will mangle articles in various unhealthy ways.
The same mistake is also found in some other news-sucking programs.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Re: Does the server has to save the full "References: " field?
#55819
Author: Frank Durda IV
Date: Mon, 31 Dec 2001 20:53
57 lines
3894 bytes
Andrew - Supernews <andrew+nonews@supernews.com> wrote:
: I looked for articles with this header. The first one I found, the
: parent article had 9 references, so the one I found should have had 10;
: in fact, your server had cut it down to the last one only. Stupid.

I'd like those Message-IDs please, since what you describe isn't the
correct behavior of the server.  The last Message-ID in the References line
would have to be over 490 bytes or so long in order for only one ID to remain
after truncating.    (Pop them in email please.)

That code has been in place since 1997, and this is the first I've heard
of it doing anything wrong.

In fact, I manually trim References: line (like the one in this post) while
composing any post.  That is not the action of the server, that is the user
controlling what goes out in the post he creates.  The References: lines
on my posts rarely exceed 240 bytes after trimming.  Longer is just not
needed.


: Servers should not try and restrict clients this way.

I don't believe anyone other than you suggested or even implied this,
however, if it is your prime directive, you should immediately remove all
GB/month and speed restrictions on your servers as they are likely limiting
your clients...   :-)


As to References trimming, it wasn't an attempt to restrict clients; it
was an attempt to get our customers (and others) to quit complaining.  We
had people complaining that the References lines were getting quite long
in extended discussions, and they claimed that the main reason was because
of the really long Message-ID our servers generate.  (Sure, the fact that
it is a long thread makes the References line long, but we gave up trying
to cloud their issue with facts.)  Six of seven of those IDs easily exceeds
512 bytes and having that many adds nothing to the ability of the newsreader
to thread the message, unless massive article loss is occurring somewhere.

We originally planned to limit References: to what would fit in 1024 bytes,
but a study of all the threaded articles on our spool at that time showed
no significant improved threading reliability by having more than four
references, so 512 bytes was picked as being enough to always have at least
four references, and typically eight.

Again, it wasn't an issue of what the server could handle (although smaller
overview data is in everybodys interest), it was what the customers were
complaining about, and they were the ones that wanted something done to
trim the References: line.  We accomodated this demand within what the RFCs
allow, as it only applies to articles received via POST.


					Frank Durda IV
					Airnews.net News Service
					Internet America
					Copr. 2001, all rights reserved.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads