Article View: news.software.nntp
Article #1971Re: Dynamic growth in groups vs NNTP
From: Bruce Lilly
Date: Sun, 20 Jun 1993 04:33
Date: Sun, 20 Jun 1993 04:33
58 lines
3609 bytes
3609 bytes
In article <C8txrI.n5B@borland.com>, posted to news.software.nntp,news.software.readers, davison@borland.com (Wayne Davison) wrote: > The active file is requested. This is a list of groups, their mode > (moderated/no-posting/etc.) and their approximate article ranges. > In the future this step may not even be necessary, but for now there > is no other way to get the 4th field information. Strictly speaking, the LIST command shouldn't send the active file. The 'p' field of an NNTP server's response to a LIST command should be either 'y' or 'n' (see RFC 977 section 3.6.1). However, NNTP 1.5.11 does in fact return the active file contents, even if the fourth field contains something other than 'y' or 'n' (e.g 'x', 'm', or "=junk" under C news). > A GROUP command is issued to check the real min/max/count totals for > a group. This count is every-changing as the group changes on the > server and is not frozen to the values reported via LIST ACTIVE. Presumably a LIST command will return the current information as of the time the command is received (I checked, and in fact up-to-date information is returned for each LIST command in NNTP 1.5.11). It is inadvisable to cache old information, and it is not clear why NNTP 1.5.11 does so. Note that the response to a GROUP command only returns an estimate of the number of articles in the group (first and last numbers *should* be correct, though). > While in the group a STAT lastart+1 command is issued to see if any > new articles have shown up. If this article exists we process the > latest addition(s) using HEAD/BODY/ARTICLE/XHDR, which all accept > up-to-the-minute accurate article numbers. Issuing another GROUP command for the same newsgroup *should* return up-to-date information, which can be compared to data cached by the newsreader (client) from the previous group command. This doesn't work with NNTP 1.5.11. I also noticed that NNTP 1.5.11 fails to comply with section 3.2.1 of RFC 977 which specifically states ``that the name of the newsgroup is not case-dependent.'' (Stan Barber or whomever is currently maintaining NNTP, please note.) STAT and ARTICLE commands are basically the same; issuing an ARTICLE command instead of STAT will simply return an error code for a nonexistent article. So STAT only saves transmission bandwidth in the case where the client is certain that it does not want any data pertaining to the article, only whether or not it exists. If you're going to process the article anyway, you might as well issue an ARTICLE command. It is also possible to issue a NEWNEWS command to determine if new articles exist, in which case another LIST command can be sent to return the current last article number (among other things) for each newsgroup. -- Bruce Lilly ...uupsi!monymsys!sonyd1!blilly!bruce
Technical Details
Message-ID:
<C8wKnL.H92@blilly.uucp>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!wupost!uunet!psinntp!monymsys!sonyd1.broadcast.sony.com!blilly.uucp!bruceReferences:
<C8txrI.n5B@borland.com>Show Full Headers
Complete Article Headers
Message-ID: <C8wKnL.H92@blilly.uucp> Subject: Re: Dynamic growth in groups vs NNTP Date: Sun, 20 Jun 1993 04:33:16 +0000 From: bruce@blilly.uucp (Bruce Lilly) References: <C8txrI.n5B@borland.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!wupost!uunet!psinntp!monymsys!sonyd1.broadcast.sony.com!blilly.uucp!bruce Newsgroups: news.software.nntp,news.software.readers Organization: Bruce Lilly Reply-To: lilb@sony.compuserve.com (Bruce Lilly) Lines: 58