Article View: news.software.nntp
Article #44470Re: Batched ARTICLE commands
From: Russ Allbery
Date: Sat, 26 Feb 2000 00:00
Date: Sat, 26 Feb 2000 00:00
40 lines
3000 bytes
3000 bytes
Curt Welch <curt@kcwc.com> writes: > INN defines a version of the protocol which has two states (innd vs > nnrpd) or feed commands vs reader commmands. INN defines a version of the protocol which has three states. Any implementation of the NNTP protocol is going to have at least two states. Don't forget about IHAVE and POST, which depending on the reply from the server either leave the server in "command" state or put the server in "expecting a post" state. You can't pipeline them either. > And it uses the MODE READER command to switch from feed state, to reader > state. And at the same time, it drops characters from the stream in > that transistion. None of this behavior has every been documented as > far as I know except in the inn source code. This is a problem with quite a bit of INN. I agree with you. I also agree with you that were I designing a news system from scratch, the obvious and best way of implementing it would be to put transit on a different port than readers, fully separate the transit protocol from the reader protocol (they're really two different protocols that currently happen to share a very small number of commands due to implementation accident but really don't need to even do that), and do away with the entire MODE READER thing. For that matter, MODE STREAM should be negotiated using some kind of capabilities system rather than as a mode change. INN does what it does due to historical evolution of the news protocol; there was only one port, the transit protocol was sort of an odd extension of the reader protocol, and different servers did odd bits of munging them together. Like most things that evolved rather than were designed, it's not nearly as clean as it should be. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylr9dz2mp3.fsf@windlord.stanford.edu>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> <20000225234216.661$0Y@newsreader.com> <bill-2602001142340001@192.168.254.8> <20000226153651.615$gx@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <ylr9dz2mp3.fsf@windlord.stanford.edu> Subject: Re: Batched ARTICLE commands Date: Sat, 26 Feb 2000 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> 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> <20000225234216.661$0Y@newsreader.com> <bill-2602001142340001@192.168.254.8> <20000226153651.615$gx@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: 590515741 Content-Type: text/plain; charset=us-ascii Organization: The Eyrie Mime-Version: 1.0 User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne) Newsgroups: news.software.nntp