🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44430

Re: Batched ARTICLE commands

#44430
From: Andrew Gierth
Date: Fri, 25 Feb 2000 00:00
49 lines
3306 bytes
>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes:

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

You are over-interpreting the RFC.

A case for comparison: the SMTP RFC documents a protocol with a
somewhat similar form of commands & responses; but it turns out to be
necessary for client implementations _not_ to pipeline commands by
default (with ESMTP, the server can advertise that pipelining is OK).

This has been discussed (somewhat briefly) on the NNTP list, and the
conclusion was that pipelining was OK with widely-deployed server
implementations, with the exception of the MODE READER command (which
in the rare cases when it is actually needed and is not a no-op,
cannot be pipelined).  I would be inclined to avoid trying it for
AUTHINFO commands too.

 Curt> There is no reason that I can think of that someone would
 Curt> intentionally flush commands in an NNTP stream.  To flush
 Curt> commands correctly would be very hard.  I'm sure the servers
 Curt> that don't allow streaming comands are just poorly written
 Curt> pieces of crap that not only dis-allow streaming commands,

This is not necessarily the case.

The usual cause for streaming failing to work (as often found in
mail, and as in the case of MODE READER) is when the connection
is being handed off to a sub-process after commands have been
read.

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

The way that sendmail, for example, doesn't follow the SMTP protocol?

-- 
Andrew.

Technical Details
Message-ID: <87n1opgdej.fsf@erlenstar.demon.co.uk>
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> <20000225162640.211$2M@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <87n1opgdej.fsf@erlenstar.demon.co.uk>
Subject: Re: Batched ARTICLE commands
Date: Fri, 25 Feb 2000 00:00:00 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
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> <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
X-Deja-AN: 590031434
X-Mayan-Date: Long count = 12.19.6.17.15; tzolkin = 12 Men; haab = 3 Kayab
X-Complaints-To: andrew@erlenstar.demon.co.uk
Organization: disorganised
X-Attribution: AG
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-P-Persistent-Headers: are a bad idea.
Newsgroups: news.software.nntp
X-Post-Filter: postfilter v0.6 alpha