Article View: news.software.nntp
Article #44471Re: Batched ARTICLE commands
From: Bill Cole
Date: Sat, 26 Feb 2000 00:00
Date: Sat, 26 Feb 2000 00:00
58 lines
3728 bytes
3728 bytes
In article <250220002137494912%planb@newsreaders.com>, "J. Moreno" <planb@newsreaders.com> wrote: > In article <87zosog8kl.fsf@erlenstar.demon.co.uk>, Andrew Gierth > <andrew@erlenstar.demon.co.uk> wrote: > > > 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). > > Pipelining article commands results in a significant speed boost over > doing things in sequence. This isn't of much concern to an online > newsreader, but an offline newsreader will certainly want to take > advantage of it, so documenting it explicitly would, IMO, be a good > thing. Yes, and the selection of which commands should be pipelinable is simple: if the command has a potential for leaving the session in a new state, it cannot be pipelined. NNTP has fewer discrete states (for readers) than SMTP, so fewer commands are likely to be dangerous. On the other hand, commands which are intended to result in a state change but which may fail (MODE, AUTHINFO, POST) are also pretty much useless to pipeline because it is not safe for a client to assume that the next command is going to be legal until there is a response. > > But to say that the current RFC requires that it work is nonsense - > > the RFC is simply silent on the issue. > > Curt's definitely right that it doesn't mention anything about being > able to drop characters or requiring the client to wait for a response > before proceeding, so I wouldn't exactly call it nonsense. > > The only thing that inclines me to think that he's being a little to > strict is that I'd jumped to the conclusion that they were being done > in sequence and for some reason ignoring it everytime I saw it being > treated differently (which says more about me jumping to conclusions > than it does about how things should be). Curt is also right about the coding side: making a server that doesn't pipeline means making a server that is more complex than it needs to be from a coding perspective. The natural way to handle a protocol like NNTP is to read every byte coming in and parse out commands, NOT to rely on specific timing which is difficult (impossible on some OS's) to get exactly right. I would be very surprised to find any server failing to handle appropriately batched commands which is not otherwise broken in some way. FWIW, I have verified another server that happily handles batched/pipelined commands: RumorMill. -- 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-2602001125570001@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> <250220002137494912%planb@newsreaders.com>Show Full Headers
Complete Article Headers
Message-ID: <bill-2602001125570001@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> <250220002137494912%planb@newsreaders.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: 590297155 Sender: bill@scconsult.com Organization: Yeah Right Newsgroups: news.software.nntp X-Posting-Server: RumorMill 1.3d16