🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #51495

Re: Question: Overflow on path line ... what to do ?

#51495
From: Juergen Helbing
Date: Tue, 27 Mar 2001 07:59
86 lines
4031 bytes
Hi Andrew,

thanks for taking the time to answer,

Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:

> Juergen> while making the final tests for my news-server-software
> Juergen> (MyNews) I've found the first "Path:" headers exceeding the
> Juergen> acceptable size for nntp-lines (510 data bytes + CRLF).
>
>No such limit exists.
>
>The 510+CRLF limit is for NNTP _command_ lines, not for article
>bodies.  

Well, 510 is the only number I found about a line length 
in RFC 850,977,1036. So I misinterpreted this.
But unlimited length is far better.

>I believe INN has a 1024 byte limit on sizes of known
>headers, though.

And this is really ugly. The RFC did not specify it - and the
implementors did it silently :-(   It was a good idea to ask here.

> Juergen> My question: How do standard NNTP-servers (INN v *.*) solve
> Juergen> this case?  Is it reasonable to accept longer path-lines (up
> Juergen> to 1k, 2k, 4k, 8k ) ?  If truncating is an option/must -
> Juergen> where and how to truncate the path (Start of line == last
> Juergen> server, end of line == source, middle == transport) ?
>
>truncating is never an option - either accept and propagate the
>article, or reject it.

So the conclusion would be that INN rejects messages as soon as
the path header exceed 1024 chars ?
It would be really nice to know how other ns-software acts.
(Perhaps this is one of the reasons why incompleteness is a 
 more and more upcoming effect - even on excellent connected hosts).

Are there any objections against a small test?
Sending out a few messages with a dummy extended 1k/2k/4k/8k
path-header to alt.test ?

>truncating is never an option 

I agree and accept this. But I have another option:
RFC 822 allows 'folding' of extra long header lines (for readability).
Would it be possible to fold the header-line at 500 chars (or course
on a delimiter) and continue in the next line?
Normally servers should ignore this. I cannot imagine that INN or other
servers use a parser to concat the lines back - and then reject the
message because the header is again too long :-)  Or ?

The path header is important for identifying message routing - 
and to avoid duplicate feeding to hosts which are already in the
path line. But I hope that 500 chars would cover at least the 
Usenet routing part of a message - enough for identification.


My problem seems to be academically for you - but for me it is serious.
In a decentralised nntp-network with thousands of hosts long path lines
are not seldom, but common. 
Well - there I can handle this. On that decentral network there is no
feeding. So the Path header is simply informational.

But as soon as gateways exist to Usenet such messages can (and 
McMurphy would say: will) enter your zone. 
And I've already learned that the gateways must be really designed well. 

Would it be an option for a gateway to split a path this way? Example:

Path: SecondUsenetServer.com ! FirstUsenetServer.org ! Gateway.net
Ypath: LastServer-my ! s600-my ! s599-my ! s598-my
	! s597-my ! s596-my ! .....
	....
	! s2-my ! s1-my ! origin

I could also add a bunch Ypath-lines if folding is not applicable.

Please help me to avoid problems - before I run into them.

TIA
-- 
Juergen
Technical Details
Message-ID: <r3129591000@archiver.winews.net>
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!supernews.google.com!sn-xit-02!supernews.com!feed1.uncensored-news.com!news.alt.net!usenet
References: <o3129021000@archiver.winews.net> <87d7b6izkj.fsf@erlenstar.demon.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <r3129591000@archiver.winews.net>
Subject: Re: Question: Overflow on path line ... what to do ?
Date: Tue, 27 Mar 2001 07:59:10 +0000
From: mynews@i3w.com (Juergen Helbing)
References: <o3129021000@archiver.winews.net> <87d7b6izkj.fsf@erlenstar.demon.co.uk>
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!supernews.google.com!sn-xit-02!supernews.com!feed1.uncensored-news.com!news.alt.net!usenet
Newsgroups: news.software.nntp
Organization: Altopia Corp. - Usenet Access - http://www.altopia.com
Lines: 85
X-Newsreader: MyNews