🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79376

Max arg length of 497

#79376
From: Julien ÉLIE
Date: Wed, 27 Aug 2008 21:50
39 lines
2511 bytes
I wondered why

   Command lines MUST NOT exceed 512 octets, which includes the terminating CRLF pair.
   The arguments MUST NOT exceed 497 octets.  A server MAY relax these limits for
   commands defined in an extension.

and found out:

    http://www.academ.com/academ/nntp/ietf/2000-July/001340.html


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Overall line length is 512 (per RFC 977). Each line is terminated with CRLF,
that leaves
510. Each keyword and arguement is seperated by a space. So, a keyword followed
by a single
arguement is seperated by one space. That leaves 509.

RFC977 didn't set a max keyword length, but the longest one I could find in use
was 12
characters. So, the text says:

"Keywords MUST be at least three US-ASCII characters and MUST NOT exceed 12
US-ASCII characters."

509 - 12 = 497
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


However, the last sentence (a keyword [command?] must not exceed 12 characters)
is not in RFC 3977.  Therefore extensions can define commands longer than that.
So... is there a reason why limit is still set if there is no length limit
for command names?

-- 
Julien ÉLIE

« Le temps, c'est des sesterces. » (Coquelus) 
Technical Details
Message-ID: <g94i7b$b64$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!talisker.lacave.net!lacave.net!news.trigofacile.com!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <g94i7b$b64$1@news.trigofacile.com>
Subject: Max arg length of 497
Date: Wed, 27 Aug 2008 23:50:28 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
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!talisker.lacave.net!lacave.net!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 39
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-15";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1219873835 11460 83.199.208.50 (27 Aug 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Wed, 27 Aug 2008 21:50:35 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049