Thread View: news.software.readers
7 messages
7 total messages
Started by Wayne Davison
Fri, 18 Jun 1993 18:23
Dynamic growth in groups vs NNTP
Author: Wayne Davison
Date: Fri, 18 Jun 1993 18:23
Date: Fri, 18 Jun 1993 18:23
32 lines
2060 bytes
2060 bytes
As some of you may know, the way our two primary NNTP implementations are written they believe a newsgroup to be a static place, filled with a certain number of articles and no more. This "snapshot" approach to news-reading is contrary to what people expect from a newsreader and, I feel, must be abandoned. Here's what I'd like to see happen when interfacing with NNTP from the perspective of a newsreader program: 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. 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. 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. Old newsreaders that use the active file numbers exclusively wouldn't be affected by the newly-dynamic GROUP return values (they don't even pay attention to them). Anyone who is already reading the GROUP return values was probably already expecting them to change over time, so actually having them do this would be a boon. Comments? .wayne..
Re: Dynamic growth in groups vs NNTP
Author: Rob Robertson
Date: Fri, 18 Jun 1993 11:45
Date: Fri, 18 Jun 1993 11:45
14 lines
1040 bytes
1040 bytes
In article <C8txrI.n5B@borland.com> davison@borland.com (Wayne Davison) writes: Comments? how about just having the GROUP command update the snapshot and everything behaving just as before? rob -- william robertson rob@agate.berkeley.edu "indecision is the key to flexibility"
Re: Dynamic growth in groups vs NNTP
Author: William C Fenner
Date: Fri, 18 Jun 1993 18:43
Date: Fri, 18 Jun 1993 18:43
13 lines
1168 bytes
1168 bytes
In article <C8txrI.n5B@borland.com> davison@borland.com (Wayne Davison) writes: > While in the group a STAT lastart+1 command is issued ... I don't see the reasoning behind using STAT for this. You already specified that the response to the GROUP command was dynamic, so to see whether or not new articles have arrived, why not just issue another GROUP command? Plus, STAT lastart+1 will fail if a new article arrives and is immediately cancelled, n'est-ce pas? Bill -- Bill Fenner fenner@cmf.nrl.navy.mil
Re: Dynamic growth in groups vs NNTP
Author: Rich Salz
Date: Fri, 18 Jun 1993 19:07
Date: Fri, 18 Jun 1993 19:07
17 lines
1456 bytes
1456 bytes
In <C8txrI.n5B@borland.com> davison@borland.com (Wayne Davison) writes: > 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. I have no problem with this. However, since some newsreaders use the GROUP command badly (e.g., old newsgrazer?) nnrpd will not calculate new data for the same group if less than NNRP_RESCAN_DELAY (default 60) seconds have elapsed. > While in the group a STAT lastart+1 command is issued to see if any > new articles have shown up. I hate this idea. If you want to find out the status of the group, issue another GROUP command. In INN1.5 trying to STAT beyond the range of what the GROUP command told you will fail. /r$
Re: Dynamic growth in groups vs NNTP
Author: MUMPS Wizard
Date: Fri, 18 Jun 1993 19:38
Date: Fri, 18 Jun 1993 19:38
20 lines
1412 bytes
1412 bytes
davison@borland.com (Wayne Davison) writes (in part): > . > . > . > 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. > > 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. Is this truly not the case now? I am surprised. On our system, whether you use LIST or GROUP, all data returned is up-to-the-instant accurate. Mark Berryman Mark.Berryman@Mvb.Saic.Com
Re: Dynamic growth in groups vs NNTP
Author: Wayne Davison
Date: Fri, 18 Jun 1993 23:09
Date: Fri, 18 Jun 1993 23:09
21 lines
1735 bytes
1735 bytes
Rich Salz <rsalz@rodan.UU.NET> wrote: > > While in the group a STAT lastart+1 command is issued to see if any > > new articles have shown up. > I hate this idea. If you want to find out the status of the group, issue > another GROUP command. In INN1.5 trying to STAT beyond the range of > what the GROUP command told you will fail. Okay, I'm not married to the STAT method, however I thought that a GROUP command was rather expensive for the server (which seems to be supported by the idea that INN doesn't refresh the GROUP data more often than every 60 seconds). I get the feeling that if I issue GROUP commands too often that I will bog down people's servers. If so we should come up with a lightweight means of extending the upper article range. All we want to do here is find out when new news arrives. Also, NNTP1.5.11 does NOT refresh its GROUP data -- I've tried changing groups and coming back and it still reports the same old numbers after a group has grown. It'd be nice to come up with something that works with old NNTP software, which is why I first used the STAT method. .wayne..
Re: Dynamic growth in groups vs NNTP
Author: Bruce Lilly
Date: Sun, 20 Jun 1993 04:33
Date: Sun, 20 Jun 1993 04:33
58 lines
3536 bytes
3536 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads