Article View: news.software.nntp
Article #42793Re: newbie newsreader questions (was [ ANNOUNCE ] INN 2.2.2 available)
From: Curt Welch
Date: Wed, 05 Jan 2000 00:00
Date: Wed, 05 Jan 2000 00:00
54 lines
4120 bytes
4120 bytes
"Johnny Favorite (it means \"Writhing Tentacle of Death\")" <allen@snakebite.com> wrote: > So, one last question. (I hope.) I heard from another programmer that > nn (No News is Good News) keeps track of visited index numbers for a > given group in one or more contiguous ranges, i.e., 10000-10199 and > 10201-10299, and so on, just in case an article shows up in one of those > "gap" locations that it might want to go back and get later on. Why? All standard newsreaders keep a newsrc file which records which articles the user has read. They record it as a list of article numbers and/or ranges. "10000-10199,10201,10203-10299" for example. So this might be what you heard about. But, if your client needs to fetch and store all articles (or XOVER data) as they show up (regardless of what the user wants to read), then yes it's sometimes possible for articles to show up out of sequence. A "good" server would never do that, but we don't live in a perfect world. Because of how some larger multi-system servers work, the articles will sometimes show up (slightly) out of sequence. This is more typical for the XOVER data, but can also happen for the article itself. That is, if you do an XOVER for 3 new articles: "XOVER 100-102" the server might return data for articles 100, and 101, but not 102. If you try it again 10 seconds later, you might find that 102 is now there. Same thing when trying to read the article with ARTICLE/HEAD/BODY commands. Servers should NEVER do this, but they do. Part of the problem is that you normally can't tell if a gap is caused by a canceled article, or by articles arriving out of sequence. But a good client will deal with this problem one way or another. But the problem is trying to decide "what" to do. If you keep a complete list of every gap you saw, and every time you fetch new news, you re-test all the gaps, it will get very slow (for servers which process cancels and have lots of gaps). Typically, if there's an out-of-order gap, it will only exist for a few seconds or minutes at most (anything longer than that and the server really is broken). So depending on how your code works, you only need to re-check the gaps for a short period of time. How fancy you want to get with all this is up to you. This happens because news servers tend to do things in parallel so they can keep up with the volume. And if you process the articles in parallel after you have assigned numbers to them, it's possible that articles will not show up for the user in the same order they were assigned numbers. When a server is working correctly, even with this bug, the gaps will be very short lived (seconds at most). But when a server gets overloaded, the delays can be much longer, and the gaps might exist for many minutes. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20000105135646.915$Ou@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-mailReferences:
<8336cs$gpj$1@isrv4.pa.vix.com> <833a4j$cum$1@isrv4.pa.vix.com> <84oe2j0kmj@enews2.newsguy.com> <84ojuo$ess$1@enterprise.cistron.net> <84ptd801qtr@enews2.newsguy.com> <84zounovkv.fsf@chiark.greenend.org.uk> <84sik006sf@enews1.newsguy.com> <84son7$kl0$1@wave.pipex.net> <84squs0ali@enews1.newsguy.com> <20000104093040.935$S9@newsreader.com> <84vs5f22vda@enews4.newsguy.com>Show Full Headers
Complete Article Headers
Message-ID: <20000105135646.915$Ou@newsreader.com>
Subject: Re: newbie newsreader questions (was [ ANNOUNCE ] INN 2.2.2 available)
Date: Wed, 05 Jan 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <8336cs$gpj$1@isrv4.pa.vix.com> <833a4j$cum$1@isrv4.pa.vix.com> <84oe2j0kmj@enews2.newsguy.com> <84ojuo$ess$1@enterprise.cistron.net> <84ptd801qtr@enews2.newsguy.com> <84zounovkv.fsf@chiark.greenend.org.uk> <84sik006sf@enews1.newsguy.com> <84son7$kl0$1@wave.pipex.net> <84squs0ali@enews1.newsguy.com> <20000104093040.935$S9@newsreader.com> <84vs5f22vda@enews4.newsguy.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: 568751950
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp