Article View: news.software.nntp
Article #66854Re: New NNTP draft -- Sections 1-3
From: Clive D. W. Feather
Date: Sat, 18 Oct 2003 20:04
Date: Sat, 18 Oct 2003 20:04
76 lines
4887 bytes
4887 bytes
In article <slrnbp2c8b.2sl5.andrew+nonews@trinity.supernews.net>, Andrew - Supernews <andrew+nonews@supernews.com> writes >> When the timer >> expires, the server SHOULD close the TCP connection without sending >> any response to the client. >Currently we abort the connection (RST) rather than send FIN if the >inactivity timeout is reached. I don't think we were concerned about that level of detail, since it will depend on what facilities are available from your TCP stack. >> 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. >We currently abort the connection if a command line is too long (more than >the maximum allowed number of octets). This is possibly suboptimal and may >be fixed in the future if it becomes an issue. I would delete the "possibly". Doing it doesn't allow the client to discover it's at fault rather than just tickling a server bug, whereas a 501 is a pretty unambiguous indication. >> If the server experiences an internal fault or problem that means it >> is unable to carry out the command (for example, a necessary file is >> missing or a necessary service could not be contacted), the response >> code 403 MUST be returned. >This appears to be new. We felt it was desirable to distinguish "the server doesn't do this" from "the server can't do this right now, but it might work another time". >We currently return 503 for the only case where this applies to us; if the >client attempts a POST command but no posting server can be contacted (we >tunnel POST operations to a specialised server). That's precisely the sort of situation where 403 is apt. >> 502: it is necessary to terminate the connection and start a new one >> with the appropriate authority before the command can be used. >> Note that the server MUST NOT close the TCP connection immediately >> after a 502 response except at the initial connection (Section >> 5.1) and with the MODE READER (Section 5.2) command. See also the >> latter command for historical usage of this response. > >Currently I believe we only return 502 in the initial banner or in response >to a failed authentication; in both cases we close the connection (with FIN). Do you ever respond 502 to MODE READER? >Since authentication is an extension this does not strictly speaking conflict. That would depend on the specification of the authentication extension you use. The correct action would be, in my opinion, to respond 480 to everything until the authentication is retried successfully. >One other odd feature of our server: we return a 500 error and close the >connection if the first command of a session appears to be an attempt to >speak HTTP. [...] >This includes cases where the first command is "POST" - we check for the >presence of HTTP-like arguments to distinguish this from legitimate use of >the POST command. I would say this is non-conforming behaviour. It's a perfect example of when to use 400, I would say, since that allows the connection to be closed immediately. If you aren't going to close it, you should respond 500 to non-NNTP commands and 501 to POST. -- Clive D.W. Feather, writing for himself | Home: <clive@davros.org> Tel: +44 20 8371 1138 (work) | Web: <http://www.davros.org> Fax: +44 870 051 9937 | Work: <clive@demon.net> Written on my laptop; please observe the Reply-To address
Technical Details
Message-ID:
<uTJ89aeAzZk$EwQE@romana.davros.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!news2.euro.net!kibo.news.demon.net!news.demon.co.uk!demon!on-the-train.demon.co.uk!cliveReferences:
<87fzhryxdc.fsf@windlord.stanford.edu> <slrnbp2c8b.2sl5.andrew+nonews@trinity.supernews.net>Show Full Headers
Complete Article Headers
Message-ID: <uTJ89aeAzZk$EwQE@romana.davros.org> Subject: Re: New NNTP draft -- Sections 1-3 Date: Sat, 18 Oct 2003 21:04:16 +0100 From: "Clive D. W. Feather" <clive@on-the-train.demon.co.uk> References: <87fzhryxdc.fsf@windlord.stanford.edu> <slrnbp2c8b.2sl5.andrew+nonews@trinity.supernews.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!news2.euro.net!kibo.news.demon.net!news.demon.co.uk!demon!on-the-train.demon.co.uk!clive Newsgroups: news.software.nntp Organization: Demon Internet Lines: 76 Reply-To: "Clive D.W. Feather" <clive@davros.org> NNTP-Posting-Host: romana.davros.org Mime-Version: 1.0 Content-Type: text/plain;charset=us-ascii;format=flowed X-Trace: news.demon.co.uk 1066508116 18285 194.217.240.35 (18 Oct 2003 X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 18 Oct 2003 20:15:16 +0000 (UTC) User-Agent: Turnpike/6.02-U (<81yImECxEkLwWkbKTSiEkLA3nC>)