🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79380

Re: Max arg length of 497

#79380
From: Julien ÉLIE
Date: Thu, 28 Aug 2008 05:52
46 lines
3087 bytes
Hi Russ,

> Just to have set a limit so that implementations can expect it and reject
> anything that doesn't fit that limit.  The actual limit is to some degree
> arbitrary as long as it interoperates with existing implementations, so it
> doesn't matter so much how the exact number was arrived at.

All right, thanks.

However, I see that INN currently accepts lines which ends only with LF.
Moreover, lines ending with CRLF and whose length is 513 octets are accepted
because of the way lines are parsed.

RFC 3977 states:

   A CRLF pair MUST terminate all commands.
   Command lines MUST NOT exceed 512 octets, which includes
   the terminating CRLF pair.
   The arguments MUST NOT exceed 497 octets.

and:

   If there is a syntax error in the arguments of a recognized command,
   including the case where more arguments are provided than the command
   specifies or the command line is longer than the server accepts, the
   response code 501 MUST be returned.


It does not say that a news server MUST reject lines whose length exceed
512 octets, but only whose length is "longer than the server accepts"!
I do not see any obligation to answer a 501 code for lines exceeding
512 octets...
Unless RFC implicitly consider that such lines are not commands so
they must not be considered as commands by the news server?

In that is so, commands which do not end with CRLF must also be rejected...
(But is it all right to do that for INN?..)

-- 
Julien ÉLIE

« -- Il est vraiment très frêle cet esquif !
  -- Il vaudrait mieux ne pas prendre de risques.
  -- Des risques ? Une galère fortement armée contre un frêle esquif ?
  -- Un frêle esquif plein de Gaulois ! » (pirates) 
Technical Details
Message-ID: <g95eg4$cpj$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail
References: <g94i7b$b64$1@news.trigofacile.com> <87sksqaw5h.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <g95eg4$cpj$1@news.trigofacile.com>
Subject: Re: Max arg length of 497
Date: Thu, 28 Aug 2008 07:52:59 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <g94i7b$b64$1@news.trigofacile.com> <87sksqaw5h.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.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 46
NNTP-Posting-Host: aaubervilliers-151-1-89-50.w83-199.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1219902788 13107 83.199.208.50 (28 Aug 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Thu, 28 Aug 2008 05:53:08 +0000 (UTC)
In-Reply-To: <87sksqaw5h.fsf@windlord.stanford.edu>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049