🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44432

Re: Batched ARTICLE commands

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

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

 Curt> If the NNTP RFC called out cases where it was not OK for
 Curt> clients to pipeline commands (and the only real reason for that
 Curt> I see -- is to allow for servers to drop characters at that
 Curt> point), then a server which dropped charcters at that point
 Curt> would be following the RFC.  But none of the RFCs I've seen
 Curt> allow for that.  So, I think it's fair to see servers which
 Curt> dropped characters anywhere in the stream are broken as per the
 Curt> current RFCs.

The SMTP RFCs don't allow for it either, it just happens to make sense
for some SMTP server implementations to assume that pipelining won't
happen (since, after all, the RFC doesn't say it _is_ allowed).

Unlike with SMTP, there is a good case for clarifying in a future NNTP
standard that pipelining _is_ OK, with exceptions such as the POST and
MODE commands (and perhaps AUTHINFO). But to say that the current RFC
requires that it work is nonsense - the RFC is simply silent on the
issue.

 Curt> I think it would be wise to add that to the RFC -- i.e. that
 Curt> pipelining of commands (by _clients_) should not be allowed
 Curt> after the mode reader command.

 Curt> It strikes me as a bit odd to do it for AUTHINFO, but I guess
 Curt> you are thinking that some servers might fork off different
 Curt> processes depending on whether the authenticated user had feed
 Curt> vs read permisssion?

That, plus the fact that authinfo exchanges can be non-trivial if
SASL is involved; the server may respond to AUTHINFO with a challenge.

POST is another command that can't be pipelined, of course.

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

 Curt> I don't understand the issue with SMTP so I can't really
 Curt> comment on that.  But if sendmail flushes data from the stream
 Curt> at some point, and the RFC doesn't say it's ok, then sure,
 Curt> sendmail doesn't follow the SMTP protocol.

Sendmail forks after seeing 'MAIL FROM:'. As it doesn't advertise the
PIPELINING extension (at least on any of the versions I have handy), I
presume it loses commands pipelined after the end of a message body,
even if nowhere else.

-- 
Andrew.

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

Show Full Headers
Complete Article Headers
Message-ID: <87zosog8kl.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> <87n1opgdej.fsf@erlenstar.demon.co.uk> <20000225180328.114$Ys@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: 590066692
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