🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66882

Re: New NNTP draft -- Section 5

#66882
From: Russ Allbery
Date: Mon, 20 Oct 2003 22:39
40 lines
2845 bytes
Graham Drabble <graham.drabble@lineone.net> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> You have to send 200 in that case; if you send 201, some clients will
>> decide the connection is permanently read-only and refuse to ever try
>> POST.

> Conversly if you try 200 then clients will try POST and if it fails not
> think about authenticating. After all the client has been told that
> posting is allowed.

No, that's not a problem.  POST will return 480, which will tell the
client that it has to authenticate.

> I'm not sure what problems it would cause, especially if you reversed 
> 201 and 202 above. What would clients do now if they received a 202?

They could believe that the server is broken and abort the connection
entirely.  I'm worried about how many people may have written code like:

    if (code == 200)
        continue_post();
    else if (code == 201)
        continue_nopost();
    else
        die_horribly();

Sure, the standard says you should proceed based on the first character,
but it's actually somewhat harder to write code that works that way.

> BTW, would people rather this go taken to the relevent mailing list?

I think it's fine here... either location excludes some possibly
interested people, unfortunately.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87ptgredpn.fsf@windlord.stanford.edu>
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!nf3.bellglobal.com!snoopy.risq.qc.ca!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <87fzhryxdc.fsf@windlord.stanford.edu> <871xta1bbb.fsf@windlord.stanford.edu> <874qy3hnhl.fsf_-_@windlord.stanford.edu> <Xns941AB877861BAgrahamdrabblelineone@ID-77355.user.dfncis.de> <87ekx7g6tb.fsf@windlord.stanford.edu> <Xns941AE6F6CF380grahamdrabblelineone@ID-77355.user.dfncis.de>

Show Full Headers
Complete Article Headers
Message-ID: <87ptgredpn.fsf@windlord.stanford.edu>
Subject: Re: New NNTP draft -- Section 5
Date: Mon, 20 Oct 2003 15:39:16 -0700
From: Russ Allbery <rra@stanford.edu>
References: <87fzhryxdc.fsf@windlord.stanford.edu> <871xta1bbb.fsf@windlord.stanford.edu> <874qy3hnhl.fsf_-_@windlord.stanford.edu> <Xns941AB877861BAgrahamdrabblelineone@ID-77355.user.dfncis.de> <87ekx7g6tb.fsf@windlord.stanford.edu> <Xns941AE6F6CF380grahamdrabblelineone@ID-77355.user.dfncis.de>
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!nf3.bellglobal.com!snoopy.risq.qc.ca!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 40
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1066689556 11286 171.64.19.147 (20 Oct 2003
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Common Lisp, linux)
Cancel-Lock: sha1:0KbKQ3SRzmwLzX4OSAYkyzdGExo=