Article View: news.software.nntp
Article #44539Re: [NNTP Draft] 4. Basic Operation
From: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
100 lines
5685 bytes
5685 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > 4. Basic Operation. > Command lines MUST NOT exceed 512 octets, which includes the > terminating US-ASCII CRLF pair. Arguments MUST NOT exceed 497 > octets. I've seen Message-IDs defined to be a max of 512 octets. How then is NNTP supposed to implement a "ARTICLE <MID>" command if the max command length is limited to 512? Why not just rase this to something more resonable like 1000? > A NNTP server MAY have an inactivity autologout timer. Such a > timer MUST be of at least three minutes duration. The > receipt of any command from the client during that interval > should suffice to reset the autologout timer. When the timer > expires, the server should close the TCP connection without > sending any response to the client. This is a change from past implementations which dumped a 503 timeout message into the stream before closing it. I think not dummping the response is good because no client will mis-interpret the meaning of a closed connection whereas they may mis-interpret the 503 code (thinking it was the response to a command which was actually sent after the timeout). But, because this used to be common practice, I think it should be mentioned in the RFC to assist people writing clients. > 4.1 Response Codes > keyword that is the first part of the command. In addition, > below is listed a general set of response codes that MAY be > received at any time. I don't really understand where there list is? > The use of unspecified response codes for a standard command > is prohibited. I think this is a problem because when you write a server, you will always find error conditions that are unique to your impelementation. And most commands don't have a generic "other error" code defined. So you end up either sending a code not defined for the command, in direct violation to the above, or you use one of the other codes that seems to be a "close" fit. But by overloading the code, you make it impossible for a client to tell the difference between the errors. Or worse, the client mis-interprets the meaning of the error and does something stupid. > The status indicator pattern x9x is provided for debugging. > Since much debugging output may be classed as "informative > messages", it MUST be the case that responses 190 through 199 > WILL be used for various debugging outputs. There is no > requirement in this specification for debugging output. > However, if such is provided over the connected stream, it > MUST use these response codes. If appropriate to a specific > implementation, other x9x codes MAY be used for debugging. > (For example, response code 290 could be used to acknowledge > a remote debugging request.) What's the point of this x9x stuff? Is it trying to say that a client may see random extra unexpected lines with x9x codes and that they should be ignored as if they weren't there? (almost as if they were comments?) Or is it saying that any command might return a x9x code instead of one of the expected codes? Or is it only saying that if you add private debugging commands, that their responses must be from the x9x set. And if that's the point, what's the difference between a private extension (x8x) and a debugging command? And since all this has no bearing whatsoever on makeing "real" clients work, why does the RFC go to all this trouble to define the x8x and x9x codes? Are these part of the codes that MAY be received at any time mentioned above? Or what? I've never understood this section and in general, I've just ignored it :). > A server MUST respond to an unrecognized, unimplemented, or > syntactically invalid command with a negative response > code(status indicators of the form 5XX). A server MUST > respond to a command issued when the session is in an > incorrect state by responding with a negative status > indicator. This may be from either the 4XX or 5XX group as > appropriate. Are these codes that can be received at any time? i.e. is it OK to send any 4xx or 5xx code as a response to any command? I think it would probably be wise to more precisely define what a server MUST return for a few cases like "command unknown". Or "Other error". Or at least talk a little more about how to correctly pick codes. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20000226190559.229$6S@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-mailReferences:
<87u2ivd36l.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <20000226190559.229$6S@newsreader.com>
Subject: Re: [NNTP Draft] 4. Basic Operation
Date: Sun, 27 Feb 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <87u2ivd36l.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: 590429654
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