🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80542

Re: Questions about datastream answers (especially to TAKETHIS)

#80542
From: Julien ÉLIE
Date: Fri, 10 Apr 2009 17:30
84 lines
5188 bytes
Hi Curt,

Thanks a lot for your very detailed article!


> Any unexpected result code (including 5xx) is taken to be some sort of
> random error from the receiving server and as such, the article is not
> thrown away, but kept on the queue.  And at the same time my server would
> close the connection and try again after a delay like a minute or more
> (under the assumption that something bad was happening).  So if you send
> back a 5xx code to my server, it's going to keep trying to send the same
> article over and over again as well.

Yep, it is similar as what I see in INN and Diablo.
It looks as though nothing else than 438/439 is expected in response to
CHECK and TAKETHIS to reject an article.  A 5xx error is not handled.
Yet, 501 should be what a news server answers when the syntax is not
correct and there is no reason why, upon sending the same article again,
another response code than 501 will be sent.  So it should be assumed
that it is a reject.  Maybe it is a widespread bug in all news servers:
they should not block that way in an endless loop.

I understand that 502 should *not* be considered as a reject, as well as
503 and 504.  502 may turn into something else after some time.  503 and 504
are unexpected answers for CHECK/TAKETHIS.
I think that only 500 and 501 should be considered as a reject in 5xx answers.
And not lead to an endless loop.


> The problem is that it's very important not to accidentally drop articles.

I agree with you.


> You can't assume you are feeding a server with redundant feeds.  Feeds must
> work correctly even if it's only a single feed.  So the sending server has
> to error on the side of caution and not drop articles whenever something
> unexpected happens.

Well, 501 is not unexpected.  It can be returned in response to TAKETHIS!
For instance if the message-ID is too long or, as you took that example,
if it contains a space.


> So there's just no way given the current state of things, to start ending
> 5xx result codes to mean "reject article because of bad error".

However, news servers should start *understanding* 5xx result codes.


> The bottom line, is that when receiving a feed, the server must do it's
> best to accept whatever is sent, and for all errors such as invalid
> message-id or command syntax errors, send back the best reject response you
> can or else you could end with a jammed feed.

Unfortunately, it is not said in current RFCs.  I understand that it is
currently better to send 439 and not 501, thus breaking the protocol,
but making everything work.


> I don't remember if that practice was part of the standard or not, but over
> the years, I ended up adding a lot of special code to my server to look at
> that information and do special things with it - but just for logging and
> statistic tracking, not for changing the basic nature of the protocol.

Good idea!  That's indeed great to do that.
As for INN, only nnrpd currently sends additional comments; innd does not.


> Is the ability to add information to the end of the result code after the
> message-id part of the standard?  Or was it just something people started
> doing?

It is part of the standard.

     initial-response-line =
           initial-response-content [SP trailing-comment] CRLF

-- 
Julien ÉLIE

« Commencez à creuser des trous pour planter les piquets.
  De beaux trous normands ! » (Astérix) 
Technical Details
Message-ID: <grnvqe$vta$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!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
References: <gq0tnk$kp3$1@news.trigofacile.com> <877i2knd8m.fsf@windlord.stanford.edu> <gq10do$n5p$1@news.trigofacile.com> <87ab7fnbjk.fsf@windlord.stanford.edu> <gq18h4$un2$1@news.trigofacile.com> <87wsajk9lu.fsf@windlord.stanford.edu> <gq273p$s8o$1@news.trigofacile.com> <87k56iip3i.fsf@windlord.stanford.edu> <gq5813$nhj$1@news.trigofacile.com> <20090409151121.399$6P@newsreader.com> <grmnm5$qt7$1@news.trigofacile.com> <20090410120813.401$Y2@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <grnvqe$vta$1@news.trigofacile.com>
Subject: Re: Questions about datastream answers (especially to TAKETHIS)
Date: Fri, 10 Apr 2009 19:30:00 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <gq0tnk$kp3$1@news.trigofacile.com> <877i2knd8m.fsf@windlord.stanford.edu> <gq10do$n5p$1@news.trigofacile.com> <87ab7fnbjk.fsf@windlord.stanford.edu> <gq18h4$un2$1@news.trigofacile.com> <87wsajk9lu.fsf@windlord.stanford.edu> <gq273p$s8o$1@news.trigofacile.com> <87k56iip3i.fsf@windlord.stanford.edu> <gq5813$nhj$1@news.trigofacile.com> <20090409151121.399$6P@newsreader.com> <grmnm5$qt7$1@news.trigofacile.com> <20090410120813.401$Y2@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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 84
NNTP-Posting-Host: aaubervilliers-151-1-71-42.w81-48.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="ISO-8859-15";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1239384718 32682 81.48.74.42 (10 Apr 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Fri, 10 Apr 2009 17:31:58 +0000 (UTC)
In-Reply-To: <20090410120813.401$Y2@newsreader.com>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049