Article View: news.software.nntp
Article #44951Re: Batched ARTICLE commands
From: bill davidsen
Date: Thu, 09 Mar 2000 00:00
Date: Thu, 09 Mar 2000 00:00
68 lines
4258 bytes
4258 bytes
In article <bill-0203002213340001@192.168.254.8>, Bill Cole <bill@scconsult.com> wrote: | > 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 ;-) | | I was speaking of the SERVER behavior. I'm pretty sure Curt was too. The | problem is not in failing to allow a pure request/response model, but in | attempting to enforce that model: it's hopelessly complex. [... snip ...] | HOWEVER, a server that FAILS to handle a stream of batched ARTICLE, XOVER, | HEAD, XHDR, or similar commands which do not evoke a state change in | success or failure is problematic. The failures in INN are not much of an | issue IMHO because a client that would try to batch the problem commands | is a stupidly written client, however INN can't reliably drop commands | batched that way (at least not in theory. I have not tested much) . You could probably do that with non-blocking reads until no data was received, but the client could still be trying to send more... in any case you can define a state change command as one which effects the action of following commands, and define the action of streaming after one such as undefined. We did that in the first ANSI C standard,, as long as the client has no reason to believe that it will work the server can do what's easiest. In most common servers that allows streaming where it makes sense. | The whole argument devolves into some silliness: no server not otherwise | badly broken fails to work with batched commands that make sense to batch. Exactly, it would take effort not to do that. I'd like to see the standard have a warning on this, but I'm not sure I want a standard which requires the server to batch. Sure hope the proposed standard requires the HELP command to list all supported commands and features, so a well written client can cope with all the versions which would be out there if there changes actually resul;ted in a new standard. | If there is anything in the spec about this, I think it should define | batching that a server MUST support and that servers MAY allow other | batching with the warning that clients MUST wait for a response to any | command if the following command presumes a specific sort of success of | the command. I can even see batching GROUP commands in a common | newsreading model (used for many GUI newsreaders) because typically there | is a stream of GROUP commands sent just to get the current article counts | for subscribed groups. The problem is that an implementation which runs a GROUP command as a process would have to use some unbuffered reads to get only the command and not leave the next part in a buffer. Hum. This needs to be worded carefully to avoid requiring more than that which is actually helpful to performance, not just that which the client writers think would be neat if the server did for them. -- 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:
<8a6r65$of1$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-mailReferences:
<220220000104304154%planb@newsreaders.com> <bill-2602001125570001@192.168.254.8> <89hm53$bd1$1@newssvr02.news.prodigy.com> <bill-0203002213340001@192.168.254.8>Show Full Headers
Complete Article Headers
Message-ID: <8a6r65$of1$1@newssvr02.news.prodigy.com> Subject: Re: Batched ARTICLE commands Date: Thu, 09 Mar 2000 00:00:00 +0000 From: davidsen@tmr.com (bill davidsen) References: <220220000104304154%planb@newsreaders.com> <bill-2602001125570001@192.168.254.8> <89hm53$bd1$1@newssvr02.news.prodigy.com> <bill-0203002213340001@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: 594947161 X-Trace: newssvr02.news.prodigy.com 952561669 000 192.168.190.118 (9 Mar 2000 00:27:49 GMT) Organization: TMR Associates, Schenectady NY Newsgroups: news.software.nntp Originator: davidsen@darkstar.prodigy.com X-Complaints-To: abuse@prodigy.net