🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
15 messages
15 total messages Started by Dufus Systems Thu, 23 Jan 2003 02:48
Client Question - Best Practice
#63573
Author: Dufus Systems
Date: Thu, 23 Jan 2003 02:48
26 lines
2022 bytes
Looking for advice. 

What's the best way to determine the contents of a goup at some time AFTER 
you've downloaded XOVER date? I have a situation with Usenetserver and am 
trying to determine how I should compensate for it. 

Here's the situation, Usenetserver has some servers which have some old 
loner posts on them(as reported by their tech support). Then there's a gap 
where they've purged some records, then the records pick back up again. 

Loner Post
|=-----Purged Posts----================| Highest record

If at one time I downloaded XOVER from the loner to the highest records, 
then posts are purged in the middle, other then re-downloading the XOVER 
data, how am I to know that posts have been purged? The "group" response 
still returns that the contents range from loner to the max record. 

Other servers, I depend on the group command response to tell me what's been 
purged. At this point, Usenetserver's blaming me for a flawed client 
implementation. Maybe they're right but, it works for everyone else (and 
used to work for them). 

Conrad
Re: Client Question - Best Practice
#63581
Author: Juergen Helbing
Date: Thu, 23 Jan 2003 08:43
56 lines
2903 bytes
peon@somecompany.com.invalid (Dufus Systems) wrote:

>What's the best way to determine the contents of a goup at some time AFTER 
>you've downloaded XOVER date? 

You cannot rely on the XOVER information.
On many servers the XOVER info is out of sync with articles.

>Loner Post
>|=-----Purged Posts----================| Highest record

This happens all the time.

>If at one time I downloaded XOVER from the loner to the highest records, 
>then posts are purged in the middle, other then re-downloading the XOVER 
>data, how am I to know that posts have been purged? The "group" response 
>still returns that the contents range from loner to the max record. 

The only way would be that whenever you've _tried_ to fetch one of
the messages - and it could not be delivered _ then you set a 'marker'
in your own software that this message was purged on the host.

This only applies to the "history".
Once you are "in sync" with the host you will only fetch XOVERs
for the range from the 'last known high watermark' to the
'actual high watermark'.....

>Other servers, I depend on the group command response to tell me what's been 
>purged. At this point, Usenetserver's blaming me for a flawed client 
>implementation. Maybe they're right but, it works for everyone else (and 
>used to work for them). 

The question might be why you want to know what was purged on the
host. Normally you dont care about the "low watermark"......
 
The algorithm for your client could be:
If the user wants to retrieve a message below the "current low watermark"
then your client rejects the request (or tries another host).
If the user wants to retrieve a message between the low-and-high
watermark then you try it. If it fails, then you label the number as
"expired" and never try again.
 

I have also seen such 'very old' messages and huge gaps in the 
XOVER-numbering on many hosts. So I never rely on the low watermark.

A very demanding job is to determine which XOVER part must be
really fetched if the low and/or high watermark is decreasing.... 
but that's a different story :-)


HTH
-- 
Juergen

Re: Client Question - Best Practice
#63586
Author: J.B. Moreno
Date: Fri, 24 Jan 2003 04:27
12 lines
1418 bytes
In article <12439.n13207@archiver.winews.net>, 
 Juergen Helbing <archiver@i3w.com> wrote:

> The question might be why you want to know what was purged on the
> host. Normally you dont care about the "low watermark"......

Text clients frequently want to know the low water mark, it's used to
remove the article from the list presented to the user.

-- 
J.B. Moreno
Re: Client Question - Best Practice
#63588
Author: Dufus Systems
Date: Fri, 24 Jan 2003 04:36
45 lines
2595 bytes
archiver@i3w.com (Juergen Helbing) wrote in
<12439.n13207@archiver.winews.net>: 

Certianly fetching it will tell me one way or the other but, it doesn't make 
users happy to not be able to download what they can see. 

>
>The only way would be that whenever you've _tried_ to fetch one of
>the messages - and it could not be delivered _ then you set a 'marker'
>in your own software that this message was purged on the host.
>
>
>The question might be why you want to know what was purged on the
>host. Normally you dont care about the "low watermark"......

Binary posts, you're not going to pull all the articles so, you have to 
maintain the XOVER records for display. The users can pick what they want to 
download from the XOVER. 

It's also apparently true that unavailabilty of one post doesn't mean all 
previous records are unavailable. 

> 
>The algorithm for your client could be:
>If the user wants to retrieve a message below the "current low
>watermark" then your client rejects the request (or tries another host).
>If the user wants to retrieve a message between the low-and-high
>watermark then you try it. If it fails, then you label the number as
>"expired" and never try again.

This is really the nutshell. What is the current low water mark on the 
server? From what I hear you saying, it sounds like only sampling the server 
will let you know for sure. 

Maybe I'll throw in a fast XHDR on message-ID and see what the server 
reports as still available... 

Thanks for the input. 


> 
>
>HTH

Re: Client Question - Best Practice
#63590
Author: Jeffrey M. Vinocur
Date: Fri, 24 Jan 2003 06:24
18 lines
1625 bytes
In article <230120032327070306%planb@newsreaders.com>,
J.B. Moreno <planb@newsreaders.com> wrote:
>
>Text clients frequently want to know the low water mark, it's used to
>remove the article from the list presented to the user.

trn at least re-fetches the overview data every time you enter
the group, and takes that as reliable.

INN has a setting to filter overview records by articles that
still exist (e.g. not cancelled); without this trn definitely
lists articles and then can't produce them when requested.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Client Question - Best Practice
#63594
Author: Juergen Helbing
Date: Fri, 24 Jan 2003 07:28
18 lines
1373 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:

>> The question might be why you want to know what was purged on the
>> host. Normally you dont care about the "low watermark"......
>
>Text clients frequently want to know the low water mark, it's used to
>remove the article from the list presented to the user.

I thought about a similar feature for my own news-client.
(For me it is more difficult because I maintain the watermarks
from 500 hosts :-)
But because I found the low watermark very unreliably I did
not implement that feature.....

-- 
Juergen

Re: Client Question - Best Practice
#63596
Author: Juergen Helbing
Date: Fri, 24 Jan 2003 07:45
69 lines
3363 bytes
peon@somecompany.com.invalid (Dufus Systems) wrote:

>Certianly fetching it will tell me one way or the other but, it doesn't make 
>users happy to not be able to download what they can see. 

Bad synchronization of Articles and Xover is problem#43 of my UPL
(UPL = Usenet Problem List).


>It's also apparently true that unavailabilty of one post doesn't mean all 
>previous records are unavailable. 

A host which accepts cancels is removing articles permanently.
But removing them also from the XOVER list seems to be 
a hard job for high volume systems.

>This is really the nutshell. What is the current low water mark on the 
>server? 

The "low water mark" on the server indicates the first message number
in the XOVER list. Nothing more.
Every attempt to fetch headers from below the watermark will result
in zero lines.
(You cannot be even sure that fetching ARTICLEs with an article
number below the low watermark fails. Some/many hosts are keeping
articles FAR LONGER than the xover list. (AFAIK some hosts are
keeping articles for months - you can still fetch them by article-nr
or msgid - but you cannot fetch their headers with XOVER).
This is done to prevent the xover list from growing too much.


>From what I hear you saying, it sounds like only sampling the server 
>will let you know for sure. 

Yes. 
I am not sure, but perhaps the STAT command is the most efficient
way (for the host) to tell you whether an article is available.

>Maybe I'll throw in a fast XHDR on message-ID and see what the server 
>reports as still available... 

AFAIK most hosts are generating the XHDR results from the XOVER list.
So it might contain the same things.
And performing "full seeks" on all the articles on a server results
in an enormous workload for the host. This is why many hosts
dont offer XHDR retrieval of headers which are not standard in
their Xover.


Perhaps somebody else as an idea how to retrieve reliable
information which reticles articles are _really_ on a host.
If not, then I will add the next problem to my UPL.  :-)


If you believe that you can "rely" on something definitely, then you
are wrong. You cannot even rely on the fact that a host delivers the
correct message if you retrieve it by msgid. You need to verify it.
And I doubt that fetching articles by article number is much more reliably.....


Writing a good download client is a permanent balance between
unreliability, bandwidth and host-workload.


Good luck with your software !
-- 
Juergen

Re: Client Question - Best Practice
#63615
Author: Dufus Systems
Date: Fri, 24 Jan 2003 20:18
17 lines
1681 bytes
archiver@i3w.com (Juergen Helbing) wrote in
<20458.o1320g@archiver.winews.net>: 

>peon@somecompany.com.invalid (Dufus Systems) wrote:
>
>>Certianly fetching it will tell me one way or the other but, it doesn't
>>make users happy to not be able to download what they can see. 
>
>Bad synchronization of Articles and Xover is problem#43 of my UPL
>(UPL = Usenet Problem List).
>

I know that you're right about this. I was just hoping...

I've never had this problem with Easynews so, I know it's possible to 
maintain the groups. 
Re: Client Question - Best Practice
#63630
Author: Jeffrey M. Vinocur
Date: Sat, 25 Jan 2003 05:23
22 lines
1783 bytes
In article <Xns930D9CD37F04Bpeonsomecompanycomin@127.0.0.1>,
Dufus Systems <peon@somecompany.com.invalid> wrote:
>archiver@i3w.com (Juergen Helbing) wrote in
><20458.o1320g@archiver.winews.net>: 
>
>>Bad synchronization of Articles and Xover is problem#43 of my UPL
>>(UPL = Usenet Problem List).
>
>I know that you're right about this. I was just hoping...
>
>I've never had this problem with Easynews so, I know it's possible to 
>maintain the groups. 

Yes, of course.  However, INN's architecture makes this a bit
complicated at present.  It is most definitely under discussion
for future improvement, though.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Client Question - Best Practice
#63666
Author: Curt Welch
Date: Mon, 27 Jan 2003 05:32
121 lines
6364 bytes
archiver@i3w.com (Juergen Helbing) wrote:
> A host which accepts cancels is removing articles permanently.
> But removing them also from the XOVER list seems to be
> a hard job for high volume systems.

It might be hard for some servers which have a "broken" xover design, but
my server has no problem keeping xover in sync with reality.  It's not hard
when the server was designed to do it correctly from the start.

> >This is really the nutshell. What is the current low water mark on the
> >server?

No, that's not it.  Articles have _never_ been removed only for the low
water mark.  The low water mark only tells you the lowest article number
still on the server.  When Usenet was younger, most servers supported the
Expires: header which allowed articles to hang around longer than the
others in the group.  And most supported cancels as well.  Large article
number gaps in the newsgroup are normal.  Your newsreader needs to deal
with it.

Almost every server on the planet has "gaps" in their newsgroups.  You
probably just never noticed it because most gaps are small and tend to be
at the end (as articles expire slightly out of order based on what spools
they are in).  It was not until you ran into this case of huge gap that you
saw how much of an issue it can be.

> >From what I hear you saying, it sounds like only sampling the server
> >will let you know for sure.
>
> Yes.

Well, sure.  You have to ask the server to find the answer. :)

> I am not sure, but perhaps the STAT command is the most efficient
> way (for the host) to tell you whether an article is available.

STAT is good (probably the best answer other than ARTICLE) for answering
the question about a single article, but it would suck if you tried to use
it for a large set of articles.

LISTGROUP is the most effecent way on my server to find out what articles
are still on the server and which have been expired or canceled.  But the
command takes no range argument so it forces you to dump the entire group.
I don't know of anyone that uses the LISTGROUP command because of this.  If
it took a range argument, it might be useful in answering the question you
talk about.

> >Maybe I'll throw in a fast XHDR on message-ID and see what the server
> >reports as still available...
>
> AFAIK most hosts are generating the XHDR results from the XOVER list.
> So it might contain the same things.

XOVER is not broken on all servers.  I don't know how broken it is in
general.  His problem isn't that XOVER was broken, but that large number of
articles were expired without changing the low-water mark.  XHDR Message-Id
is probably a good way to check for that on most servers.  But it's
something that will be a waste of time on most servers so you will either
need to make it an option that most users will never understand, or make it
automatic when some other system you use (like a few stat commands) shows
that there are a large number of gaps in the group.

Most of these "problem gaps" will happen with the oldest articls in the
group.  So maybe, one way to do this is to simply use XHDR Message-ID on
the last 100 articles in the group.  If you find gaps, then you can use
more XHDR commands to check more aticles (N at a time) until you find no
more missing articles.

Actually, on Highwind servers which do not support XHDR for headers other
than the ones in XOVER, it might in fact return a valid list of articles in
the group and correctly show you which ones are there and which are
missing.  You might actually try that (i.e. doing an XHDR on a non-standard
header).

Yeah a quick check on easynews shows this:

xhdr asdf 128871-128890
221 asdf fields follow
128871 (none)
128872 (none)
128873 (none)
128875 (none)
128876 (none)
128877 (none)
128878 (none)
128883 (none)
128884 (none)
128885 (none)
128886 (none)
128887 (none)
128888 (none)
128889 (none)
128890 (none)
..

So it returns the clasic highwind "(none)" crap, but it's also correctly
giving you a list of all the articles in the range which are still on the
server.

This won't work on other servers becase a "correct" implementation of XHDR
will only list the articles which contain the header asked for.  But it
might be a neat trick for highwind servers if you care to try and take
advantage of it.  It would be easy for your newsreader to automatcially
test the server doing a command like the above to figure out if the server
works like the highwind server does.

LISTGROUP is probably the best if the group is small enough that you can
justify dumping the article numbers for the entire group, but for larger
groups, XHDR Message-ID is probably going to be the best general answer,
and for highwind servers, the "XHDR fake-header-name" trick might be a good
answer (there are a lot of highwind servers in the world).

> Writing a good download client is a permanent balance between
> unreliability, bandwidth and host-workload.

And the amount of "smart" code you are willing to write. :)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Client Question - Best Practice
#63672
Author: Kjetil Torgrim Homme
Date: Mon, 27 Jan 2003 17:51
34 lines
2764 bytes
[Curt Welch]:
>
>   LISTGROUP is the most effecent way on my server to find out what
>   articles are still on the server and which have been expired or
>   canceled.  But the command takes no range argument so it forces
>   you to dump the entire group.  I don't know of anyone that uses
>   the LISTGROUP command because of this.  If it took a range
>   argument, it might be useful in answering the question you talk
>   about.

do you think it is worthwhile to add a command listing the articles
present in range format?

  C: GROUP ifi.test
  S: 211 2864 5144 8718 ifi.test
  C: XLISTRANGE
  S: 211 Article list follows
  S: 5144-5264,5266-5286,5288-5356,5358-5399,5402-5475,5477-5511,5513-5562
  S: 6191-6209,6211-6212,6214-6266,6268-6288,6290-6291,6293-6300,6302-6403
  S: 6405-6429,6431-6477,6479-6480,6482-6548,6550-6578,6580-6623,6625-6648
  S: 6650-6651,6656-6834,6836-6924,6926-6926,6928-6992,6994-6997,6999-7003
  S: 7005-7026,7028-7037,7039-7046,7048-7051,7053-7061,7063-7075,7077-7100
  S: 7103-7105,7107-7110,7112-7145,7147-7149,7151-7164,7166-7241,7243-7243
  S: 7245-7367,7369-7370,7396-7508,7510-7545,7547-7548,7550-7622,7625-7817
  S: 7819-7933,7935-7937,7939-8348,8351-8357,8359
  S: .

the lines could've been longer.  a linefeed has the same meaning as a
comma.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: Client Question - Best Practice
#63679
Author: Curt Welch
Date: Tue, 28 Jan 2003 16:34
56 lines
3696 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> [Curt Welch]:
> >
> >   LISTGROUP is the most effecent way on my server to find out what
> >   articles are still on the server and which have been expired or
> >   canceled.  But the command takes no range argument so it forces
> >   you to dump the entire group.  I don't know of anyone that uses
> >   the LISTGROUP command because of this.  If it took a range
> >   argument, it might be useful in answering the question you talk
> >   about.
>
> do you think it is worthwhile to add a command listing the articles
> present in range format?
>
>   C: GROUP ifi.test
>   S: 211 2864 5144 8718 ifi.test
>   C: XLISTRANGE
>   S: 211 Article list follows
>   S: 5144-5264,5266-5286,5288-5356,5358-5399,5402-5475,5477-5511,
>     5513-5562
>   S: 6191-6209,6211-6212,6214-6266,6268-6288,6290-6291,6293-6300,
>     6302-6403
>   S: 6405-6429,6431-6477,6479-6480,6482-6548,6550-6578,6580-6623,
>     6625-6648
>   S: 6650-6651,6656-6834,6836-6924,6926-6926,6928-6992,6994-6997,
>     6999-7003
>   S: 7005-7026,7028-7037,7039-7046,7048-7051,7053-7061,7063-7075,
>     7077-7100
>   S: 7103-7105,7107-7110,7112-7145,7147-7149,7151-7164,7166-7241,
>     7243-7243
>   S: 7245-7367,7369-7370,7396-7508,7510-7545,7547-7548,7550-7622,
>     7625-7817
>   S: 7819-7933,7935-7937,7939-8348,8351-8357,8359
>   S: .
>
> the lines could've been longer.  a linefeed has the same meaning as a
> comma.

That would be a fine way to do it if someone really wanted it.  You would
want to allow a range argument to the command so the newsreader could check
only a limited range in the group.  Even though the format above is very
compact compared to LISTGROUP, you still don't want to fource a newsreader
(or news server) to scan the data for a million article group if all the
newsreader was interested in was the last 10,000 articles.

However, I haven't heard many people screeming for the feature because
there are other ways that aren't "too bad" to get the same information
(xhdr). Mostly we try to set up the servers to minimize the gaps so that
they aren't a big problem most the time so most newsreaders simply don't do
anything other than know how to deal with the problem of an article not
being there when you try to fetch it.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Client Question - Best Practice
#63680
Author: Kjetil Torgrim Homme
Date: Tue, 28 Jan 2003 16:59
47 lines
3114 bytes
[Curt Welch]:
>
>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>   > do you think it is worthwhile to add a command listing the articles
>   > present in range format?
>   
>   That would be a fine way to do it if someone really wanted it.
>   You would want to allow a range argument to the command so the
>   newsreader could check only a limited range in the group.

yes.  btw, it just occured to me that another useful command could be
to list the article number of the oldest article no older than the
time specified.  the answer could be used for all the ranged commands.

  C: GROUP ifi.test
  S: 211 2865 5144 8719 ifi.test
  C: XARTAGE 20020728 000000 GMT
  S: 223 8480 <ralm7subw9.fsf@moriarty.uio.no>

of course, the client can do a binary search with XOVER itself, but...

>   Even though the format above is very compact compared to
>   LISTGROUP, you still don't want to fource a newsreader (or news
>   server) to scan the data for a million article group if all the
>   newsreader was interested in was the last 10,000 articles.

true, there will almost always be a cutoff value for how old articles
the client is interested in.

>   However, I haven't heard many people screeming for the feature
>   because there are other ways that aren't "too bad" to get the same
>   information (xhdr).

XHDR often doesn't work, it won't verify that the article is actually
present.

>   Mostly we try to set up the servers to minimize the gaps so that
>   they aren't a big problem most the time so most newsreaders simply
>   don't do anything other than know how to deal with the problem of
>   an article not being there when you try to fetch it.

true.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: Client Question - Best Practice
#63694
Author: Curt Welch
Date: Thu, 30 Jan 2003 17:58
13 lines
1740 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> XHDR often doesn't work, it won't verify that the article is actually
> present.

My XHDR does.

It would probably be better to fix or replace the broken servers than it
would be to try and get a new command added to every server.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Client Question - Best Practice
#63696
Author: Kjetil Torgrim Homme
Date: Thu, 30 Jan 2003 18:31
18 lines
1812 bytes
[Curt Welch]:
>
>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>   > XHDR often doesn't work, it won't verify that the article is actually
>   > present.
>   
>   My XHDR does.
>   
>   It would probably be better to fix or replace the broken servers
>   than it would be to try and get a new command added to every
>   server.

true.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
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