🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80424

Re: Questions about datastream answers (especially to TAKETHIS)

#80424
From: Julien ÉLIE
Date: Fri, 20 Mar 2009 23:21
65 lines
3517 bytes
Hi Russ,

> 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.

Oh hmm...  If that's so, should we really send 501 to:

   [C] TAKETHIS bad-mid and/or four arguments
   [C] From: ...
   [C] (with a valid article)
   [C] .

We will get desynchronized the same way.
If 501 can be sent in that case, so does 403...

But I am under the impression that we MUST send 501 and continue the
connection on a syntax error, and that we MUST sent 400 and close
the connection in other cases.
So desynchronization can occur in the first case.  (I hope it scarcely
happens.)


The same goes for CHECK:

   [C] CHECK <good@mid>
   [C] CHECK bad-mid
   [C] CHECK <another@good-mid>

   [S] 238 <good@mid>
   [S] 501 Syntax error in message-ID
   [S] 238 <good@mid>

The client will not know what it should do with "bad-id".
Besides, it may (but should not) keep sending CHECK in an endless loop
for "bad-id"...



> 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).

OK.  But it would be the same if, for instance, a client is not allowed
to send articles to "private.group"; we should answer 480 to TAKETHIS if
the newsgroup the article is sent to is "private.group".  Or if encryption
is needed for that group, 483.
Other *unlikely* scenarii could not happen with that design.



> If you use 400 and just
> close the connection, then the client will defer all unacknowledged
> articles, which is usually what you want.

OK.

-- 
Julien ÉLIE

« Dès que le silence se fait, les gens le meublent. » (Raymond Devos)
Technical Details
Message-ID: <gq18h4$un2$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>

Show Full Headers
Complete Article Headers
Message-ID: <gq18h4$un2$1@news.trigofacile.com>
Subject: Re: Questions about datastream answers (especially to TAKETHIS)
Date: Sat, 21 Mar 2009 00:21:55 +0100
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>
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: 65
NNTP-Posting-Host: aaubervilliers-151-1-14-78.w83-114.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1237591396 31458 83.114.13.78 (20 Mar 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Fri, 20 Mar 2009 23:23:16 +0000 (UTC)
In-Reply-To: <87ab7fnbjk.fsf@windlord.stanford.edu>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049