🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44610

Re: Batched ARTICLE commands

#44610
From: bill davidsen
Date: Tue, 29 Feb 2000 00:00
59 lines
3783 bytes
In article <bill-2602001125570001@192.168.254.8>,
Bill Cole <bill@scconsult.com> wrote:
| In article <250220002137494912%planb@newsreaders.com>, "J. Moreno"
| <planb@newsreaders.com> wrote:

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

  If there is a significant improvement, the server is serious sick. The
client software should be able to wait for a response and issue the next
article request immediately.

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

  Add GROUP, obviously.
|
| > > 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.

  If something isn't specified, how can you read a requirement that it
work? The RFC doesn't address the issue, and I would read the
request-response protocol to mean that the client should wait.

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

  Could you give an example of an operating system which doesn't support
a client server model which allows a client to send a request to the
server and for the server to return a response? I don't see any
"specific timing" involved, unless you mean that the request should come
before the reply. It's easier to code that way ;-)
--
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  When taking small children to a carnival, always have them go potty
*before* you let them go on the rides, and let them eat all the junk
food and candy *after*.

Technical Details
Message-ID: <89hm53$bd1$1@newssvr02.news.prodigy.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
References: <220220000104304154%planb@newsreaders.com> <87zosog8kl.fsf@erlenstar.demon.co.uk> <250220002137494912%planb@newsreaders.com> <bill-2602001125570001@192.168.254.8>

Show Full Headers
Complete Article Headers
Message-ID: <89hm53$bd1$1@newssvr02.news.prodigy.com>
Subject: Re: Batched ARTICLE commands
Date: Tue, 29 Feb 2000 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
References: <220220000104304154%planb@newsreaders.com> <87zosog8kl.fsf@erlenstar.demon.co.uk> <250220002137494912%planb@newsreaders.com> <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-mail
X-Deja-AN: 591532221
X-Trace: newssvr02.news.prodigy.com 951868387 000 192.168.190.118 (29 Feb 2000 23:53:07 GMT)
Organization: TMR Associates, Schenectady NY
Newsgroups: news.software.nntp
Originator: davidsen@darkstar.prodigy.com
X-Complaints-To: abuse@prodigy.net