Article View: news.software.nntp
Article #44456Re: Batched ARTICLE commands
From: Bill Cole
Date: Sat, 26 Feb 2000 00:00
Date: Sat, 26 Feb 2000 00:00
63 lines
3823 bytes
3823 bytes
In article <20000225234216.661$0Y@newsreader.com>, curt@kcwc.com (Curt Welch) wrote: > Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: [...] > > POST is another command that can't be pipelined, of course. > > and likewise IHAVE. > > But POST and IHAVE can't be because of logical protocol reasons --- i.e. > the client has to wait for the response before it can know what will > be acceptable next in the data stream. The RFC clearly implies that > already. Nothing else really needs to be said there. What it doesn't > imply (or even hint at) is that that pipelining might be a problem at the > MODE READER command. MODE commands (in addition to POST, IHAVE, and AUTHINFO) cause a state change when successful. It's a poor client that assumes the success of a command which causes a state change and proceed to act as if that state change has succeeded. I know that some servers treat MODE READER as a no-op, but it is not required that all servers do so and it is bad form for a client to assume that if it MUST send the command, that it is a no-op. > Do you see the point I'm making here? Yes, and I agree that a server which chucks data on the stream at such state-change points is acting badly. It's just that any client which might have a problem with that behavior is broken in a worse way. > > The problem is that by the very nature of the protocol, many people think > of it as a command->response->command->response type of a thing. They > assume that clients won't send two commands before waiting for a response. > And in most cases, they are correct, this is how most clients use it. > > But, the RFC, as written, implies that it is valid for a client to pipeline > commands. And this creates the problem that a server author may falsely > assume clients won't pipeline commands (or because of the nature of the > protocol, just never think about the posibility). And a client author, > on the other hand, may decide to take advantage of the pipeline features > of the protocol to improve performance. And, because it really is valid, > this client will work fine with some servers, but break on others that > didn't actually follow the RFC. > > So the RFC has a problem. Granted, it's a small problem, and only one of > many small problems, but it's a problem none the less. Easily solved: define a state diagram and require that clients MUST NOT attempt to pipeline across state changes. Doing so is stupid to begin with, but the existence of a state diagram for SMTP is IMHO what results in only the stupidest of client software attempting to do so. -- Bill Cole, Geek at large I'm casually looking for a new job See: http://sc1.scconsult.com/~bill/resume.html for a resume and more 5094th at Freenix!!!
Technical Details
Message-ID:
<bill-2602001142340001@192.168.254.8>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-mailReferences:
<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> <87zosog8kl.fsf@erlenstar.demon.co.uk> <20000225234216.661$0Y@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <bill-2602001142340001@192.168.254.8> Subject: Re: Batched ARTICLE commands Date: Sat, 26 Feb 2000 00:00:00 +0000 From: bill@scconsult.com (Bill Cole) 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> <87zosog8kl.fsf@erlenstar.demon.co.uk> <20000225234216.661$0Y@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: 590301387 Sender: bill@scconsult.com Organization: Yeah Right Newsgroups: news.software.nntp X-Posting-Server: RumorMill 1.3d16