Article View: news.software.nntp
Article #44659Re: Batched ARTICLE commands
From: J. Moreno
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
80 lines
4481 bytes
4481 bytes
Curt Welch <curt@kcwc.com> wrote: > davidsen@tmr.com (bill davidsen) wrote: > > If something isn't specified, how can you read a requirement that > > it work? > > You can't. But pipelining of commands in NNTP is specified. Some people > just don't know how to read an RFC. > > > The RFC doesn't address the issue, and I would read the > > request-response protocol to mean that the client should wait. > > Like I said. Some people don't know how to read an RFC. Where > does it say wait? > > If it doesn't specify a wait, how can you read a requirement that it > must do so? It's not explicit either way (except insofar as it inherits from other parts of the mechanism). And comparing the underlying protocol versus the "natural" way of implementing the "top" protocol -- I think it's a close call, but absent a clear statement one way of the other you have to be as liberal as possible, and in this case that means accepting pipelining. > I agree with you and the "others" that the natural asumption for a protocol > like this is that the client waits. But that's just because that's how we > think about these things, and how we (normally) write the software. And > because the RFC says nothing to get us out of that train of thought, people > reading the RFC can be confused. The authors of the RFC might not even > have given the issue much though. The authors might just have assumed that > the client would always be waiting. It seems that in general clients have made this assumption, servers haven't. > However, whatever the intent, the RFC they ended up with does define a > protocol that allows the client to pipeline commands. And that's the point > I've been trying to get across in this thread. > > Given the _fact_ that this protocol is based on a TCP/IP connection, a > "reliable data stream" -- i.e. one which guarantees the server receives > _every_ byte the client decides to send, the only way pipelining could fail > to work, is if the server failed to do it's job of parsing the input stream > into commands and data, and responding to each and every command sent by > the client. To a degree what the standard calls for is irrelevant, it's what actually gets implemented that is important -- and in that regards, pipelining seems to be very solid. I didn't get to test them all, but it seems to be supported by all the major news servers and is used by clients. IMO it simply needs to be documented as standard behavior so that more clients will be able to take advantage of it and any future server authors will know that it is expected. > And sure enough, the reason pipelining doesn't work sometimes in the > real world is just that. The server just decides that it's OK, to > take that "reliable data stream" as specified in the RFC, and turn it > into an "unreliable data stream". I can hear the server now, "Hey! > No fair! You sent that when I wasn't looking!". Right, tell it to > the judge... In the real world, it seems like mainly it just isn't a problem. One server with a reported 4000 byte incoming buffer, and one "server" (actually an echo of a web board) that treats it as a command/response protocol. Given this situation, I think it'd be a mistake to not mention it, and the only possible thing to say is that it's a MUST to accept pipelining. -- J. B. Moreno Pessimist: Half empty Optimist: Half full Engineer: Wrong size glass
Technical Details
Message-ID:
<010320000300280729%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-mailReferences:
<220220000104304154%planb@newsreaders.com> <87zosog8kl.fsf@erlenstar.demon.co.uk> <250220002137494912%planb@newsreaders.com> <bill-2602001125570001@192.168.254.8> <89hm53$bd1$1@newssvr02.news.prodigy.com> <20000229233555.290$eO@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <010320000300280729%planb@newsreaders.com> Subject: Re: Batched ARTICLE commands Date: Wed, 01 Mar 2000 00:00:00 +0000 From: "J. Moreno" <planb@newsreaders.com> References: <220220000104304154%planb@newsreaders.com> <87zosog8kl.fsf@erlenstar.demon.co.uk> <250220002137494912%planb@newsreaders.com> <bill-2602001125570001@192.168.254.8> <89hm53$bd1$1@newssvr02.news.prodigy.com> <20000229233555.290$eO@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: 591664100 Content-transfer-encoding: 8bit Mail-Copies-To: nobody Content-Type: text/plain; charset=ISO-8859-1 X-Face: ]lUBtDImSD_`E"<*ZgyJUoCT\=CdRLFX4qCMLK[xy^L7v|uX|f8`cFDd*PaH8 N*x>d^h Organization: BOFH wannabe MIME-Version: 1.0 User-Agent: YA-NewsWatcher/5.0.0 Newsgroups: news.software.nntp