Article View: news.software.nntp
Article #44623Re: Batched ARTICLE commands
From: bill davidsen
Date: Tue, 29 Feb 2000 00:00
Date: Tue, 29 Feb 2000 00:00
66 lines
4033 bytes
4033 bytes
In article <20000225180328.114$Ys@newsreader.com>, Curt Welch <curt@kcwc.com> wrote: | Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: | > >>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: | The truth is that the NNTP RFCs (at least all I've read), don't address the | issue at all. But it's very clear that if the client sends a valid | command, and the server decides to ignore it (or decides to ignore just | some of the bytes) -- then the server is not following the RFC. There's | just no other way to read the RFC. Actually I don't see any requirement that streaming be permitted, either. The RFC should say what the server must provide, and the current RFC seems to describe a request-response half duplex type of interraction. Streaming is not required, it falls out of some implementations for some request sequences. | > A case for comparison: the SMTP RFC documents a protocol with a | > somewhat similar form of commands & responses; but it turns out to be | > necessary for client implementations _not_ to pipeline commands by | > default (with ESMTP, the server can advertise that pipelining is OK). | | If the NNTP RFC called out cases where it was not OK for clients to | pipeline commands (and the only real reason for that I see -- is to | allow for servers to drop characters at that point), then a server which | dropped charcters at that point would be following the RFC. But none of | the RFCs I've seen allow for that. So, I think it's fair to see servers | which dropped characters anywhere in the stream are broken as per the | current RFCs. And if a server forked a process after a GROUP command? There might be a number of ARTICLE requests in a buffer of the parent, right? Which would not be dropped, but would be seen after the child terminated. | > This has been discussed (somewhat briefly) on the NNTP list, and the | > conclusion was that pipelining was OK with widely-deployed server | > implementations, with the exception of the MODE READER command (which | > in the rare cases when it is actually needed and is not a no-op, | > cannot be pipelined). I would be inclined to avoid trying it for | > AUTHINFO commands too. | | Yeah, I wasn't even thinking about the cases where the server is going | to try and hand-off the connection to another process. In that case, | it's hard to "get it right". But in my mind, INN has always been broken | in that respect. It's easy to get it right if you require the client to wait for a response before issuing another request. Suggestion: Rather than require some kind of streaming behaviour, why not extend the article command to take a list of articles, as do many other commands? Let the client unwind the stream. Should be able to use existing code for the most part, doesn't require streaming, allows whatever benefit someone thinks comes from doing this in the first plce, etc. -- 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:
<89hlas$b7q$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> <20000225162640.211$2M@newsreader.com> <87n1opgdej.fsf@erlenstar.demon.co.uk> <20000225180328.114$Ys@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <89hlas$b7q$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> <20000225162640.211$2M@newsreader.com> <87n1opgdej.fsf@erlenstar.demon.co.uk> <20000225180328.114$Ys@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: 591526779 X-Trace: newssvr02.news.prodigy.com 951867548 000 192.168.190.118 (29 Feb 2000 23:39:08 GMT) Organization: TMR Associates, Schenectady NY Newsgroups: news.software.nntp Originator: davidsen@darkstar.prodigy.com X-Complaints-To: abuse@prodigy.net