🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44422

Re: Batched ARTICLE commands

#44422
From: Curt Welch
Date: Fri, 25 Feb 2000 00:00
57 lines
3704 bytes
Richard Michael Todd <rmtodd@independence.ecn.ou.edu> wrote:
> curt@kcwc.com (Curt Welch) writes:
>
> > Yes, mine does that as well.
> >
> > Any server which doesn't is broken.  Though it would probably work with
> > most newsreaders because it's not very natural for a newsreder to try
> > and send multiple commands without waiting for the response to the
> > first.
> >
> > Streaming newsfeeds (which use CHECK/TAKETHIS) however require that to
> > work.  If you find a server which doesn't queue commands correctly then
> > it's most likely a server which can't do streaming (incomming) feeds.
>
> You're assuming that the same server software that handles
> incoming streaming newsfeeds is the same one that handles newsreading
> commands like ARTICLE etc.

True.  Or at least the same "style" code.

> That's not the case in the INN
> implementation, and probably several others.  It's entirely possible to
> have a news server that takes streaming CHECK/TAKETHIS but doesn't allow
> streaming ARTICLES.

Not "allowing" batched commands (as are talked about in this thread) means
the server is broken.  The RFCs are all very clear on the format of
incomming commands in the TCP stream. If any NNTP server receives the
characters: "ARTICLE 1\r\nARTICLE 2\r\n" from the TCP stream, and decides
to toss out the second command, then it is very broken.  Nowhere in the
spec does it say it's OK to throw away data from the TCP stream.

> Now, I think INN's nnrpd probably will allow
> streaming ARTICLES (a quick test I tried seems to work), but that's more
> an artifact of the most obvious way to implement a one-process-per-reader
> nnrpd than because it was designed to.

It's very easy to get the code wrong there.  Someone that didn't know what
they were doing could easily do that and never realize their mistake.

There is no reason that I can think of that someone would intentionally
flush commands in an NNTP stream.  To flush commands correctly would be
very hard.  I'm sure the servers that don't allow streaming comands are
just poorly written pieces of crap that not only dis-allow streaming
commands, but are also likely to toss out half of a command and then try
to process the remaining half.  And that's just broken code.

By saying "they allow streaming commands", it makes it sound like the
programmer had to add extra code to support the feature (one that perhaps
you think isn't even required).  But the truth is, if he doesn't add that
code, he's written a broken server that doesn't follow the NNTP protocol.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Technical Details
Message-ID: <20000225162640.211$2M@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.mbox.zip!not-for-mail
References: <220220000104304154%planb@newsreaders.com> <240220000054115493%planb@newsreaders.com> <20000225004139.313$nK@newsreader.com> <250220001158002643%planb@newsreaders.com> <20000225125610.123$Ow@newsreader.com> <yl6itzdjb0r.fsf@independence.ecn.ou.edu>

Show Full Headers
Complete Article Headers
Message-ID: <20000225162640.211$2M@newsreader.com>
Subject: Re: Batched ARTICLE commands
Date: Fri, 25 Feb 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <220220000104304154%planb@newsreaders.com> <240220000054115493%planb@newsreaders.com> <20000225004139.313$nK@newsreader.com> <250220001158002643%planb@newsreaders.com> <20000225125610.123$Ow@newsreader.com> <yl6itzdjb0r.fsf@independence.ecn.ou.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.mbox.zip!not-for-mail
X-Deja-AN: 590021443
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-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp