Article View: news.software.nntp
Article #44597Re: [NNTP Draft] 4. Basic Operation
From: Andrew Gierth
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
59 lines
3543 bytes
3543 bytes
>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes:
Curt> And the NNTP 512 limit isn't an issue? I've certainly never
Curt> seen a case in real-life were it was ever close to being a
Curt> problem.
The only situation I know of where it is an issue is when providing long
lists of group names or patterns to the NEWNEWS command.
Curt> Thinking about the line lentgh limit a bit more, it seems to me
Curt> that what's more important than setting a limit in the RFC, is
Curt> clearly defining what a client can expect to have happen if it
Curt> sends a command line which is too long for the server (no
Curt> matter what the length happens to be.).
Curt> Checking my code, I find I return a "400 command too long"
Curt> result. Don't know why I picked 400 -- it may have come from
Curt> some other server or I might just have made it up. It should
Curt> be in the 5xx range (if not the 6xx :) because it's a really
Curt> bad error).
Not all of my code handles this the same way. In one case I ended up
eating the entire line, no matter how long, and responding with
"500 Line too long". In another case I ended up dropping the connection.
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.
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.
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.
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.
--
Andrew.
Technical Details
Message-ID:
<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-mailReferences:
<87u2ivd36l.fsf@erlenstar.demon.co.uk> <20000226190559.229$6S@newsreader.com> <877lfrbhub.fsf@erlenstar.demon.co.uk> <20000226232844.171$mz@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <87aekm56gr.fsf@erlenstar.demon.co.uk> Subject: Re: [NNTP Draft] 4. Basic Operation Date: Mon, 28 Feb 2000 00:00:00 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <87u2ivd36l.fsf@erlenstar.demon.co.uk> <20000226190559.229$6S@newsreader.com> <877lfrbhub.fsf@erlenstar.demon.co.uk> <20000226232844.171$mz@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 X-Deja-AN: 590697148 X-Mayan-Date: Long count = 12.19.6.17.18; tzolkin = 2 Etznab; haab = 6 Kayab X-Complaints-To: andrew@erlenstar.demon.co.uk Organization: disorganised X-Attribution: AG X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 X-P-Persistent-Headers: are a bad idea. Newsgroups: news.software.nntp X-Post-Filter: postfilter v0.6 alpha