πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80534

Re: Questions about datastream answers (especially to TAKETHIS)

#80534
From: Curt Welch
Date: Thu, 09 Apr 2009 19:24
31 lines
3182 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> > Another amusing thing to answer to innfeed is another message-ID:
> >
> >  [C] CHECK <mid1>
> >  [S] 239 <mid2>
> >
> > It will go into sleep mode.  Shouldn't the right behaviour be to ignore
> > this 239 answer and consider we still haven't got an answer for <mid1>?

I think the correct thing is to assume the 239 IS for the check it should
match up with.

As I ranted a little bit in my last message, clients should _always_
(streaming or not streaming) be smart enough to match responses to the
commands they sent.

I believe the odds that a server will send back responses out of order is
far less likely, then the odds that the server will get the argument wrong
for some reason (like sending the message-id from the article instead of
from the TAKETHIS command argument).  So I would think the most logical way
to code the client is to match up responses per the protocol, and deal with
it as you should, instead of writing complex code that assumes the server
is sending back extra responses, or sending back responses out of order.
(unless you actually saw a server doing that and you were writing the code
to deal with that specific server).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Technical Details
Message-ID: <20090409152457.119$Dn@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!transit4.hitnews.eu!xlned.com!feeder1.xlned.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!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> <gq3qmm$l9a$1@de-l.enfer-du-nord.net> <gq552r$km7$1@news.trigofacile.com> <873ad5ovtn.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <20090409152457.119$Dn@newsreader.com>
Subject: Re: Questions about datastream answers (especially to TAKETHIS)
Date: Thu, 09 Apr 2009 19:24:55 +0000
From: curt@kcwc.com (Curt Welch)
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> <gq3qmm$l9a$1@de-l.enfer-du-nord.net> <gq552r$km7$1@news.trigofacile.com> <873ad5ovtn.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!transit4.hitnews.eu!xlned.com!feeder1.xlned.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-NRC-Trace: NewsReader.Com M+6VNM4_D5Ev.v_MeGVAcpE5IiQsRo99R6ZXZ8Dhkkt,SED
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,
 ?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 31
NNTP-Posting-Host: 305699f8.nr5-q1.newsreader.com
X-Trace: DXC=X\VL; 51T[`of0cY1L87^kibgZaH`e<A[iZ?:i9<JJBSn=Q[l95K6NXiiJ;
 iV2YAoGecZY<Ho@jImd]5ZFMG:YBlb
X-Complaints-To: abuse@newsreader.com