πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80422

Re: Questions about datastream answers (especially to TAKETHIS)

#80422
From: Russ Allbery
Date: Fri, 20 Mar 2009 21:12
33 lines
3096 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

>> I don't see a reason why 403 wouldn't be fine if that represents the
>> situation.
>
> OK, though it is difficult to make a clear difference between a RFC 4644
> "temporary error" which leads to answer 400 and close the connection and
> a RFC 3977 "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)" which leads to answer a mere 403.
>
> I guess the question is more "do we need to close the connection" than
> discussing the error.  (And it can be extended to other commands, not
> only TAKETHIS.)

The problem with streaming is that you can easily get desynchronized.  I
remember now why we did this: always closing the connection when something
goes wrong in the middle of streaming articles is safer.  Otherwise, you
run a higher risk of not being able to associate error replies with
articles or having the client guess wrong about what you're trying to do.

In particular, if you send back a 403 for a particular article and
otherwise continue to accept articles, the client has no way of knowing
which article was rejected with the 403 unless they're paying a lot of
attention to sequencing (which often they don't).  If you use 400 and just
close the connection, then the client will defer all unacknowledged
articles, which is usually what you want.

-- 
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: <87ab7fnbjk.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!newsfeed.news2me.com!headwall.stanford.edu!news.stanford.edu!not-for-mail
References: <gq0tnk$kp3$1@news.trigofacile.com> <877i2knd8m.fsf@windlord.stanford.edu> <gq10do$n5p$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87ab7fnbjk.fsf@windlord.stanford.edu>
Subject: Re: Questions about datastream answers (especially to TAKETHIS)
Date: Fri, 20 Mar 2009 14:12:47 -0700
From: Russ Allbery <rra@stanford.edu>
References: <gq0tnk$kp3$1@news.trigofacile.com> <877i2knd8m.fsf@windlord.stanford.edu> <gq10do$n5p$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!newsfeed.news2me.com!headwall.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 33
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.stanford.edu 1237583567 10099 171.67.225.134 (20 Mar 2009
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Cancel-Lock: sha1:vV3b/QHgbOMmgxT8q+MM79FNAO4=
X-Original-Bytes: 2892