🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44569

Re: [NNTP Draft] 4. Basic Operation

#44569
From: Curt Welch
Date: Mon, 28 Feb 2000 00:00
71 lines
4163 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:

> I think the server should have some flexibility here. In particular it
> should have the option to drop the connection if it sees a lot of
> consecutive bad commands - this usually means that something has got
> its commands & data out of step somehow.

That sounds like a resonable thing for a server to do -- i.e drop
on a large string of bad commands.  But I don't know if we need to
say anything about that in the RFC.  Do you see something that makes
you feel you should shouldn't add to to a server in the RFC?

To me, if you write TCP/IP code, you just have to assume that the
connection might drop at any time for any reason and be prepared to
deal with that.  So a server which decides to "make" it happen when
things get "really" bad, isn't causing the client any probelms it
shouldn't already be set up to deal with.

>  Curt> This is an example of a place where a code should be allocated
>  Curt> for this error, and not used for any other response.
>
> Why?

> If a server wants to support command lines >512, that is an extension,
> and should be handled via the LIST EXTENSIONS mechanism.

Well, I guess I take back what I was thinking here.  Unlike say
article lines, NNTP command lines mostly will never have a length
problem.  So fixing the limit at 512 and just being done with it
is probably fine.

Where I was comming from was more along the lines of what a client may
want to for articles.  Like, for example, a client may not want to
fold Path: lines, but if it got a clear "Path too long" response from
a POST (it could "fix" the lines and then post it).

Speaking of article lines.  Does the RFC say anything about line
lengths within multiline data?  I know this was a problem in the past
in that some NNTP implementations tried to apply the 512 length not
just to commands, but to article lines as well.

I'm thinking the RFC needs to defer to USEFOR for the requirements
for the article format, and make it clear that the COMMAND line length
limit has nothing to do with article lines.

>  Curt> I also think it would be useful to include wording that
>  Curt> required the NNTP server to correctly read the entire line even
>  Curt> if it was too long.  I.e.  spliting it up and trying to parse
>  Curt> it as two or more commands would not be allowed.  This way, the
>  Curt> client would not be required to length check all the commands
>  Curt> before they were sent as long as it could deal with the LINE
>  Curt> TOO LONG response code in a reasonable way for all commands.
>
> The client can't do this at present, so there seems little gain in
> trying to add this functionality.

Yeah, and it's not really needed so what's the point...

>  Curt> It would also be wise to explicity declare that 503 could NEVER
>  Curt> be sent by a server for any reason in this version of the RFC.
>
> 503 is a valid response ("program fault - command not performed")
> under other circumstances besides a timeout.

Well, it would have been wise :).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Technical Details
Message-ID: <20000228012146.670$ua@newsreader.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.mbox.zip!not-for-mail
References: <87u2ivd36l.fsf@erlenstar.demon.co.uk> <20000226190559.229$6S@newsreader.com> <877lfrbhub.fsf@erlenstar.demon.co.uk> <20000226232844.171$mz@newsreader.com> <87aekm56gr.fsf@erlenstar.demon.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <20000228012146.670$ua@newsreader.com>
Subject: Re: [NNTP Draft] 4. Basic Operation
Date: Mon, 28 Feb 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <87u2ivd36l.fsf@erlenstar.demon.co.uk> <20000226190559.229$6S@newsreader.com> <877lfrbhub.fsf@erlenstar.demon.co.uk> <20000226232844.171$mz@newsreader.com> <87aekm56gr.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!not-for-mail
X-Deja-AN: 590731624
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp