🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
22 messages
22 total messages Started by Julien ÉLIE Thu, 11 Sep 2008 20:22
News servers without XOVER and XHDR?
#79427
Author: Julien ÉLIE
Date: Thu, 11 Sep 2008 20:22
103 lines
3454 bytes
Hi,

Does RFC 3977 break news readers?!?


Something I have just tried:


1st case -> XOVER and XHDR available
--------

Windows Mail and Thunderbird:

GROUP fr.usenet.distribution
211 649 1 976 fr.usenet.distribution
XOVER 1-976
224 Overview information for 1-976 follows
[...]



2nd case -> XOVER unavailable
--------

Windows Mail:

GROUP fr.usenet.distribution
211 649 1 976 fr.usenet.distribution
XOVER 1-976
500 "XOVER" not implemented; try "HELP"
XHDR subject 1-976
221 Header information for subject follows (from overview)
[...]
XHDR from 1-976
221 Header information for from follows (from overview)
[...]
XHDR date 1-976
221 Header information for date follows (from overview)
[...]
XHDR message-id 1-976
221 Header information for message-id follows (from overview)
[...]
XHDR references 1-976
221 Header information for references follows (from overview)
[...]
XHDR lines 1-976
221 Header information for lines follows (from overview)
[...]
XHDR xref 1-976
221 Header information for xref follows (from overview)
[...]



Thunderbird:

GROUP fr.usenet.distribution
211 649 1 976 fr.usenet.distribution
XOVER 1-976
500 "XOVER" not implemented; try "HELP"
HEAD 1
221 1 <slrnf33jsh.2sk9.fyr+news@noway.fyrou.net> head
[...]


Unfortunately, Thunderbird hangs after HEAD 1 for a reason I do not know!

Therefore, it does not work.  But Windows Mail does :-P



3rd case -> XOVER and XHDR unavailable
--------

Windows Mail:

GROUP fr.usenet.distribution
211 649 1 976 fr.usenet.distribution
XOVER 1-976
500 "XOVER" not implemented; try "HELP"
XHDR subject 1-976
500 "XHDR" not implemented; try "HELP"

It does not do anything else (I have "Error 500" in a pop-up).

And Thunderbird does the same thing as before (HEAD which hangs).


Well, I believe the HEAD thing is a bug -- I am going to report it.



Conclusion:  RFC 3977 breaks news readers if legacy commands like XOVER
             and XHDR are not implemented...

Does anyone have a comparative of what commands news clients usually issue?
(slrn, Gnus, MesNews, etc.)

-- 
Julien ÉLIE

« Les trois journées de 1830 ont renversé 89. » 
Re: News servers without XOVER and XHDR?
#79428
Author: Russ Allbery
Date: Thu, 11 Sep 2008 21:38
20 lines
1707 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:

> Does RFC 3977 break news readers?!?

[...]

> Conclusion:  RFC 3977 breaks news readers if legacy commands like XOVER
>             and XHDR are not implemented...
>
> Does anyone have a comparative of what commands news clients usually issue?
> (slrn, Gnus, MesNews, etc.)

It's safe to assume at this point that basically no clients use either
OVER or HDR.  It's not clear to me if that will change.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: News servers without XOVER and XHDR?
#79429
Author: Curt Welch
Date: Fri, 12 Sep 2008 05:02
38 lines
3162 bytes
=?iso-8859-15?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid> wrote:

> Conclusion:  RFC 3977 breaks news readers if legacy commands like XOVER
>              and XHDR are not implemented...
>
> Does anyone have a comparative of what commands news clients usually
> issue? (slrn, Gnus, MesNews, etc.)

RFC 3977 without a doubt breaks most current newsreaders (any newsreader
that doesn't do XOVER isn't a "real" newsreader :)).  You need to include
support for XOVER at a minimum and you should include support for XHDR.
Both of those are old well established standards on Usenet that almost all
news clients use.  They were left out of the new RFC only because of the
problem that they began with X.  There is XPAT as well if you choose to
support it.

I would have _STRONLY_ voted for the dropping of the X* convention and
making XOVER and XHDR the standard.

I think the only reason that was not done was because the X* convention is
used in many other internet standards as well so the idea was to "clean up"
Usenet and bring it in line with other standards.

At this point, I doubt Usenet will ever be cleaned up and XOVER will live
on for as long as Usenet lives on.  The new improved features of 3977 are
migrating into Usenet but it will never be practical to remove support for
XOVER.

The X* convention for experimental commands is also totally unworkable.
There's no workable path for the migration of X* commands to a new name.
By the time the command is popular enough to be included in a standard,
it's already embedded in too many servers and clients to make it practical
to change the name.  When adding experimental commands, people should just
give them real names.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Re: News servers without XOVER and XHDR?
#79430
Author: Russ Allbery
Date: Fri, 12 Sep 2008 05:10
33 lines
2702 bytes
curt@kcwc.com (Curt Welch) writes:

> I would have _STRONLY_ voted for the dropping of the X* convention and
> making XOVER and XHDR the standard.
>
> I think the only reason that was not done was because the X* convention is
> used in many other internet standards as well so the idea was to "clean up"
> Usenet and bring it in line with other standards.

No, that isn't the only reason.  If you closely compare the specification
of XOVER and XHDR against the INN implementation, you'll discover that we
also cleaned up a number of protocol flaws and made the commands more
reliable and consistent, so that new clients that are aware of the new
commands will in some cases see more reliable and more standard responses.
The specification is much tighter and more complete than the old RFC 2980
specification.

> The X* convention for experimental commands is also totally unworkable.
> There's no workable path for the migration of X* commands to a new name.
> By the time the command is popular enough to be included in a standard,
> it's already embedded in too many servers and clients to make it
> practical to change the name.  When adding experimental commands, people
> should just give them real names.

This, however, I generally agree with, with the caveat than in addition to
giving them real names, they should also write an Internet-Draft and
submit it, providing a specification.  It's not that hard.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: News servers without XOVER and XHDR?
#79431
Author: Julien ÉLIE
Date: Fri, 12 Sep 2008 06:12
57 lines
3413 bytes
Hi Curt,

> RFC 3977 without a doubt breaks most current newsreaders (any newsreader
> that doesn't do XOVER isn't a "real" newsreader :)).  You need to include
> support for XOVER at a minimum and you should include support for XHDR.
> Both of those are old well established standards on Usenet that almost all
> news clients use.

It is a pity that lots (?) of them only rely on these commands and, when
unavailable, do not fall back to ARTICLE/BODY/HEAD which are the basics!


> The X* convention for experimental commands is also totally unworkable.
> There's no workable path for the migration of X* commands to a new name.
> By the time the command is popular enough to be included in a standard,
> it's already embedded in too many servers and clients to make it practical
> to change the name.  When adding experimental commands, people should just
> give them real names.

I see one workable path:  suppose that you create XPAT and implement it,
then there is no reason why that command would not be PAT.
When standardized, PAT is advertised in CAPABILITIES and news readers know
for sure that they can use it.


It might be possible to provide an extension to CAPABILITIES.  There is a
keyword argument.  For instance:

[C] CAPABILITIES XPAT
[S] 101 Standardized command: follows
[S] PAT
[S] .

The keyword must begin with "X" to be treated like that by CAPABILITIES.
(Several CAPABILITIES could be answered too, if needed.)

Otherwise, using lines which do not begin with a letter?

[C] CAPABILITIES
[S] 101 List follows
[S] VERSION 2 3
[S] PAT
[S] _XPAT PAT
[S] .

An underscore (or a dash, a % or I do not know what) followed by the legacy
capability and then the standardized command.

Of course the new command X* should be well defined according to current RFCs
so as not to change its syntax (but only add new cases compatible with X*)
when standardized.

-- 
Julien ÉLIE

« Si l'art n'a pas de patrie, les artistes en ont une. » (Camille Saint-Saëns) 
Re: News servers without XOVER and XHDR?
#79432
Author: Curt Welch
Date: Fri, 12 Sep 2008 16:16
25 lines
2611 bytes
Russ Allbery <rra@stanford.edu> wrote:
> curt@kcwc.com (Curt Welch) writes:
>
> > I would have _STRONLY_ voted for the dropping of the X* convention and
> > making XOVER and XHDR the standard.
> >
> > I think the only reason that was not done was because the X* convention
> > is used in many other internet standards as well so the idea was to
> > "clean up" Usenet and bring it in line with other standards.
>
> No, that isn't the only reason.  If you closely compare the specification
> of XOVER and XHDR against the INN implementation, you'll discover that we
> also cleaned up a number of protocol flaws and made the commands more
> reliable and consistent, so that new clients that are aware of the new
> commands will in some cases see more reliable and more standard
> responses. The specification is much tighter and more complete than the
> old RFC 2980 specification.

Yeah, now that you mention this (again) I remember that.  You were more
specific about the translation from headers to xover fields weren't you
including the processing of multiline headers?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Re: News servers without XOVER and XHDR?
#79433
Author: Russ Allbery
Date: Fri, 12 Sep 2008 16:31
20 lines
2000 bytes
curt@kcwc.com (Curt Welch) writes:

> Yeah, now that you mention this (again) I remember that.  You were more
> specific about the translation from headers to xover fields weren't you
> including the processing of multiline headers?

Yup.  And we fixed some problems like the one that Julien just discovered
today, where if you implement XOVER per RFC 2980 and return an error if
there are no articles in range, clients break, because clients assume the
INN behavior of always returning success with empty data.  :/

I think the approach that we took with RFC 3977 really was the right
approach.  It was just about five years too late to have the impact that
it should have had.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: News servers without XOVER and XHDR?
#79434
Author: Jeffrey M. Vinocur
Date: Sat, 13 Sep 2008 02:11
23 lines
1937 bytes
In article <gad18f$oq$1@news.trigofacile.com>,
Julien ÉLIE  <iulius@nom-de-mon-site.com.invalid> wrote:
>
>I see one workable path:  suppose that you create XPAT and implement it,
>then there is no reason why that command would not be PAT.
>When standardized, PAT is advertised in CAPABILITIES and news readers know
>for sure that they can use it.

This only works if the behavior of PAT is precisely the same as
XPAT.  If you are to learn anything from your experiment and
include it before settling on the behavior of the final command,
then no newsreader written before this process is complete will
know exactly what has changed, even if it has a way to figure out
that PAT is the finalized version of XPAT.


Now, if software was so good at updating itself that we didn't
need to support old versions...


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: News servers without XOVER and XHDR?
#79435
Author: Julien ÉLIE
Date: Sat, 13 Sep 2008 15:44
20 lines
1881 bytes
> Thunderbird:
>
> GROUP fr.usenet.distribution
> 211 649 1 976 fr.usenet.distribution
> XOVER 1-976
> 500 "XOVER" not implemented; try "HELP"
> HEAD 1
> 221 1 <slrnf33jsh.2sk9.fyr+news@noway.fyrou.net> head
> [...]
>
> Unfortunately, Thunderbird hangs after HEAD 1 for a reason I do not know!

Thunderbird is currently at version 2.0.0.16.
The problem is fixed in Thunderbird 3 (in their trunk).

-- 
Julien ÉLIE

« Donner un sens plus pur aux mots de la tribu. » (Stéphane Mallarmé) 
Re: News servers without XOVER and XHDR?
#79436
Author: Julien ÉLIE
Date: Sat, 13 Sep 2008 15:47
22 lines
2083 bytes
Hi Russ,

> It's safe to assume at this point that basically no clients use either
> OVER or HDR.  It's not clear to me if that will change.

It will help if news servers begin to implement it, as this response from
people developing Thunderbird suggests:

===
> By the way, why not try to use CAPABILITIES?  If it does not answer 500 and
> advertises OVER or HDR, use them; otherwise, use XOVER and XHDR.  Then HEAD if
> nothing is available.

There is a bug on that, but it's low priority since the number of major servers
supporting CAPABILITIES or OVER, etc. is 0.
===

-- 
Julien ÉLIE

« C'est la goutte d'eau qui fait déborder le vase et qui met le feu aux poudres. »
Re: News servers without XOVER and XHDR?
#79437
Author: Curt Welch
Date: Sat, 13 Sep 2008 18:07
105 lines
6410 bytes
=?Windows-1252?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid>
> wrote: Hi Curt,
>
> > RFC 3977 without a doubt breaks most current newsreaders (any
> > newsreader that doesn't do XOVER isn't a "real" newsreader :)).  You
> > need to include support for XOVER at a minimum and you should include
> > support for XHDR. Both of those are old well established standards on
> > Usenet that almost all news clients use.
>
> It is a pity that lots (?) of them only rely on these commands and, when
> unavailable, do not fall back to ARTICLE/BODY/HEAD which are the basics!

Yeah, well, if the guys developing the newsreaders ever found a server that
didn't implement xover, they would probably have taken the time to write
the code to use head to make it work.  But since basically every server in
the world implements xover these days they have no motivation to do it, and
no server to test it on even if they wrote the code.  They would have to
write a custom news server (or at least a news server proxy) just to be
able to test their code.  That seldom happens and as a result, all the
current newsreaders assume XOVER is there and that's what they used.

The basic commands in NNTP are GROUP, XOVER, and ARTICLE.  Everything else
is just "extra fluff". :)

The first newsreader I wrote was in 1989.  XOVER was just coming out in
those days, but XHDR was already well established.  I used XHDR because a
single XHDR command was far faster than 100's of HEAD commands.  A few
years later, I added XOVER support with fallback to my old XHDR code.  Ever
since the early 90's, XOVER has been the standard and has been included in
all news server written since then.  So there hasn't been any reason to
fall back to HEAD.  Falling back from XOVER to HEAD is basically as odd as
writing code to fallback to HEAD and BODY if ARTICLE wasn't implemented or
falling back to ARTICLE if HEAD OR BODY wasn't implemented. :)  This is
simply because all current newsreaders expect all current news servers to
implement GROUP, XOVER, HEAD and ARTICLE as the basic fundamental NNTP
commands.

> > The X* convention for experimental commands is also totally unworkable.
> > There's no workable path for the migration of X* commands to a new
> > name. By the time the command is popular enough to be included in a
> > standard, it's already embedded in too many servers and clients to make
> > it practical to change the name.  When adding experimental commands,
> > people should just give them real names.
>
> I see one workable path:  suppose that you create XPAT and implement it,
> then there is no reason why that command would not be PAT.
> When standardized, PAT is advertised in CAPABILITIES and news readers
> know for sure that they can use it.
>
> It might be possible to provide an extension to CAPABILITIES.  There is a
> keyword argument.  For instance:
>
> [C] CAPABILITIES XPAT
> [S] 101 Standardized command: follows
> [S] PAT
> [S] .
>
> The keyword must begin with "X" to be treated like that by CAPABILITIES.
> (Several CAPABILITIES could be answered too, if needed.)
>
> Otherwise, using lines which do not begin with a letter?
>
> [C] CAPABILITIES
> [S] 101 List follows
> [S] VERSION 2 3
> [S] PAT
> [S] _XPAT PAT
> [S] .
>
> An underscore (or a dash, a % or I do not know what) followed by the
> legacy capability and then the standardized command.
>
> Of course the new command X* should be well defined according to current
> RFCs so as not to change its syntax (but only add new cases compatible
> with X*) when standardized.

Yeah that would work.  The behavior of assuming if an X command didn't work
then trying the command without the X would be a simple and workable
solution.

But there is so little new server development and new protocol changes
happening these days that there's no need (or reason) such a convention
would take hold.  The RFC sets the standard that CAPABILITIES and draft
standards are the "correct" path for new commands to be added to NNTP if
there was a need.

Speaking of which, why are you witting a Usenet server if you don't mind me
asking...? (I assume from all your detailed questions that you are witting
a new server from scratch?).

If someone wanted to make a change to the protocol, the major thing that
needs fixing in NNTP is to eliminate article numbers. They represent a
major architectural headache in the development of distributed servers.

I haven't thought through how that would be done, but it seems like it
should be possible. Basically, all article access would be message-id and
header data would be accessed by time stamps and there would be no
assumption or requirement of article order, or consistency in groups.  All
newsreaders would have to be written from scratch basically to deal with it
however so it's not very practical but a fun design exercise to think
about.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Re: News servers without XOVER and XHDR?
#79438
Author: Julien ÉLIE
Date: Sat, 13 Sep 2008 22:31
41 lines
2764 bytes
Hi Curt,

> This is
> simply because all current newsreaders expect all current news servers to
> implement GROUP, XOVER, HEAD and ARTICLE as the basic fundamental NNTP
> commands.

All right.  Thanks for having taken the time to write a bit of XOVER history.


> Speaking of which, why are you witting a Usenet server if you don't mind me
> asking...? (I assume from all your detailed questions that you are witting
> a new server from scratch?).

Not from scratch :)
The fact is that I am currently implementing RFC 3977 on INN 2.5.


> If someone wanted to make a change to the protocol, the major thing that
> needs fixing in NNTP is to eliminate article numbers. They represent a
> major architectural headache in the development of distributed servers.

Then it is a NEWNEWS-like behaviour:

NEWNEWS news.software.nntp 20080912 080000 GMT
ARTICLE <mid-received1@server>
ARTICLE <mid-received2@server>
...


But what if I want to ask information for a range of articles?
Between two message-IDs?  Or between two arrival dates?

It could be specified in an extension:  commands with "range" expect
something like 12-42.  You could specify a "date range"...

-- 
Julien ÉLIE

« Dans la vie il faut savoir compter, mais pas sur les autres. » (Paul-Jean Toulet)
Re: News servers without XOVER and XHDR?
#79439
Author: Curt Welch
Date: Mon, 15 Sep 2008 01:35
83 lines
5173 bytes
=?Windows-1252?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid>
> wrote: Hi Curt,
>
> > This is
> > simply because all current newsreaders expect all current news servers
> > to implement GROUP, XOVER, HEAD and ARTICLE as the basic fundamental
> > NNTP commands.
>
> All right.  Thanks for having taken the time to write a bit of XOVER
> history.
>
> > Speaking of which, why are you witting a Usenet server if you don't
> > mind me asking...? (I assume from all your detailed questions that you
> > are witting a new server from scratch?).
>
> Not from scratch :)
> The fact is that I am currently implementing RFC 3977 on INN 2.5.

Ah, ok, cool.

> > If someone wanted to make a change to the protocol, the major thing
> > that needs fixing in NNTP is to eliminate article numbers. They
> > represent a major architectural headache in the development of
> > distributed servers.
>
> Then it is a NEWNEWS-like behaviour:
>
> NEWNEWS news.software.nntp 20080912 080000 GMT
> ARTICLE <mid-received1@server>
> ARTICLE <mid-received2@server>
> ...
>
> But what if I want to ask information for a range of articles?
> Between two message-IDs?  Or between two arrival dates?
>
> It could be specified in an extension:  commands with "range" expect
> something like 12-42.  You could specify a "date range"...

And in addition, you would still need XOVER like bulk download function.
You sure the hell wouldn't want to have to do a head on a list of 100,000
message IDs you got from newnews. :)

The problem with the server design is the requirement to keep multiple
servers in sync which is what is required for article numbers.  However,
newsreaders still need some type of function to allow them to identify new
articles so the concept of date of arrival stamps per server or simply
maintaining an arrival sequence could work.

But, my thought for eliminating article numbers is to also eliminate the
need for a news reader to have to keep track of which news server it is
talking to.  That is, if it used 5 different servers it could use, it
wouldn't have to do what newsreaders do know - which is track article
numbers per server.

So the thought for the newnews/xover type feature is the type of idea you
were getting at, which to ask for a new articles after a given message-id.
So you download all the news news, and keep track of the last message-id
you recevied in the update.  Then next time, you ask for all new news in a
given group starting with the given message-id.  But if you connect to a
different server, to arrival order will be different so you are likely to
fail to get some articles doing that.  And even worse, if the server you
ask didn't get the message-id you are asking about, all points of reference
are lost.

I guess this means the only workable standard is time as newnews works.
But the lost message issue due to different arrival times still remains.

The only solution I can see is sticking with something like newnews which
lists message-ids, but has more flexibility in specifying start and end
times and maybe maximum number of articles in a batch, and forcing the
newsreader to do a bit of scanning back in time to get a decent list of new
message-ids.  But then it needs to get bulk headers for a list of message
ids.

I think a bulk xover command would be needed where the client is uploading
message-ids while the server is downloading xover-like data in parallel.

Seems awful complex and messy but it might work.  Might be fun to do some
experimenting....

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Re: News servers without XOVER and XHDR?
#79450
Author: Urs Janßen
Date: Mon, 22 Sep 2008 12:44
35 lines
2513 bytes
In <87sks6qs79.fsf@windlord.stanford.edu>, Russ Allbery wrote:
> > Conclusion:  RFC 3977 breaks news readers if legacy commands like XOVER
> >             and XHDR are not implemented...
> >
> > Does anyone have a comparative of what commands news clients usually issue?
> > (slrn, Gnus, MesNews, etc.)
> 
> It's safe to assume at this point that basically no clients use either
> OVER or HDR.  It's not clear to me if that will change.

right out of my head without looking at the code tin >= 1.9.3 does
the following:

- check CAPABILITIES for OVER/HDR

- if CAPABILITIES doesn't mention them try XOVER/XHDR (should not
  happen)

- if CAPABILITIES is not available try XOVER/XHDR if that fails try
  OVER/HDR.

- if OVER or XOVER is working check OVERVIEW.FMT for Xref:full, if not
  found use OVER/XOVER and XHDR/HDR Xref (in the HDR case check LIST
  HEADERS first if announced via CAPABILITIES to see if Xref is
  available, if not don't try to fetch the Xref-data). if XHDR/HDR Xref
  isn't working just don't mark xposted articles as read in all groups,
  do not try to use HEAD to get the missing data.

- if OVER/XOVER isn't working at all use HEAD

urs
-- 
Jef Poskanzer:
"When people aren't stupid Usenet is even more useful. Too bad this happens
 so rarely."
Re: News servers without XOVER and XHDR?
#79451
Author: Joshua Cranmer
Date: Mon, 22 Sep 2008 17:59
18 lines
2201 bytes
Curt Welch wrote:
> Yeah, well, if the guys developing the newsreaders ever found a server that
> didn't implement xover, they would probably have taken the time to write
> the code to use head to make it work.  But since basically every server in
> the world implements xover these days they have no motivation to do it, and
> no server to test it on even if they wrote the code.  They would have to
> write a custom news server (or at least a news server proxy) just to be
> able to test their code.  That seldom happens and as a result, all the
> current newsreaders assume XOVER is there and that's what they used.

Actually, I found a server that doesn't do XHDR in a sufficient way. 
It's called GigaNews. Which commands market share. I therefore fixed the 
broken HEAD support in Thunderbird when I implemented XHDR.


-- 
Beware of bugs in the above code; I have only proved it correct, not 
tried it. -- Donald E. Knuth
Re: News servers without XOVER and XHDR?
#79452
Author: Russ Allbery
Date: Mon, 22 Sep 2008 18:12
14 lines
1517 bytes
Urs Janßen <urs@akk.org> writes:

> right out of my head without looking at the code tin >= 1.9.3 does
> the following:

[...]

Oh, awesome!  That's excellent news.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: News servers without XOVER and XHDR?
#79453
Author: Julien ÉLIE
Date: Mon, 22 Sep 2008 19:00
22 lines
2007 bytes
Hi Joshua,

> Actually, I found a server that doesn't do XHDR in a sufficient way. It's called GigaNews. Which commands market share.

Trying to find out information about what they implemented, I saw
discussions saying that XHDR only worked on fields which are in
their overview database.


Hmm... It is perhaps done because of

GROUP one.of.their.binary.group.with.more.than.2^31.messages
XHDR Newsgroups 0-

which will take lots of resources on their news servers :)

-- 
Julien ÉLIE

« Medicus dedit qui temporis morbo curam,
  Is plus remedii quam cutis sector dedit. » 
Re: News servers without XOVER and XHDR?
#79454
Author: Julien ÉLIE
Date: Mon, 22 Sep 2008 20:16
20 lines
1938 bytes
Hi Urs,

Thanks a lot for that information!

Just a quick note:

> (in the HDR case check LIST HEADERS first if announced via CAPABILITIES
> to see if Xref is available, if not don't try to fetch the Xref-data)

I hope they use the right version of LIST HEADERS (MSGID or RANGE); otherwise,
they will miss available fields.

By the way, if HDR is in CAPABILITIES, then LIST HEADERS is mandatory.
No need to explicitly check it.

-- 
Julien ÉLIE

« Se coucher tard... nuit. » (Raymond Devos) 
Re: News servers without XOVER and XHDR?
#79455
Author: Urs Janßen
Date: Mon, 22 Sep 2008 21:59
24 lines
2427 bytes
In <gb8uee$6m8$1@news.trigofacile.com>, Julien ÉLIE wrote:
> > (in the HDR case check LIST HEADERS first if announced via CAPABILITIES
> > to see if Xref is available, if not don't try to fetch the Xref-data)
> 
> I hope they use the right version of LIST HEADERS (MSGID or RANGE); otherwise,
> they will miss available fields.

tin uses "LIST HEADERS RANGE" (the currently is no fallback to
"LIST HEADERS" if "LIST HEADERS RANGE" fails for some reason).

> By the way, if HDR is in CAPABILITIES, then LIST HEADERS is mandatory.
> No need to explicitly check it.

I have to parse the CAPABILITIES output anyway, so looking for
LIST HEADERS is trivial (and the capability is also marked as available
if HDR is found). btw. servers might implement LIST HEADERS
without implementing HDR (makes not much sense but IIRC the RFC
doesn't forbid that).

urs
-- 
Jef Poskanzer:
"When people aren't stupid Usenet is even more useful. Too bad this happens
 so rarely."
Re: News servers without XOVER and XHDR?
#79457
Author: Francois Petillon
Date: Tue, 23 Sep 2008 14:31
33 lines
3053 bytes
On Mon, 15 Sep 2008 01:35:14 +0000, Curt Welch wrote:
> The problem with the server design is the requirement to keep multiple
> servers in sync which is what is required for article numbers.  However,
> newsreaders still need some type of function to allow them to identify new
> articles so the concept of date of arrival stamps per server or simply
> maintaining an arrival sequence could work.

I do not like it (and I do not like newnews too :-).

Arrival stamps means the server has to find out which is next entry after
a timestamp (which is likely to be more complex than to find an entry
using its article-id). Arrival sequence means you manage an array/list
(just like the one you have with article-id).

And in both case you still have to keep servers in sync with the
choosen "index".

> But, my thought for eliminating article numbers is to also eliminate the
> need for a news reader to have to keep track of which news server it is
> talking to.  That is, if it used 5 different servers it could use, it
> wouldn't have to do what newsreaders do know - which is track article
> numbers per server.

I just do not understand your point. You still have to keep an information
(timestamp, sequence, etc.) for the next newnews/xover (you just can not
assume all servers will receive all articles at same time, etc.). And
using such a simple information will move part of the complexity to the
servers (it will have to retrieve an article-id-like information according
to your timestamp/sequence) and I _really_ prefer having complexity moved
to client computers (plenty of memory/CPU for a single user) and not to
servers (plenty of users for little memory/CPU).

François
Re: News servers without XOVER and XHDR?
#79458
Author: Curt Welch
Date: Tue, 23 Sep 2008 18:29
98 lines
6803 bytes
Francois Petillon <fanch@fanfan.staff.proxad.net> wrote:
> On Mon, 15 Sep 2008 01:35:14 +0000, Curt Welch wrote:
> > The problem with the server design is the requirement to keep multiple
> > servers in sync which is what is required for article numbers.
> > However, newsreaders still need some type of function to allow them to
> > identify new articles so the concept of date of arrival stamps per
> > server or simply maintaining an arrival sequence could work.
>
> I do not like it (and I do not like newnews too :-).
>
> Arrival stamps means the server has to find out which is next entry after
> a timestamp (which is likely to be more complex than to find an entry
> using its article-id). Arrival sequence means you manage an array/list
> (just like the one you have with article-id).
>
> And in both case you still have to keep servers in sync with the
> choosen "index".

My thinking was not to keep them in sync and allow all servers to be out of
sync and to force the newsreader to do the extra the work to deal with that
problem.  My thinking was something along the line of the newsreader being
able to assume that for the life of a single TCP connection, the order
would be maintained (you could ask twice and see the same order), but that
whe4n you make a news TCP connection, even to the same IP address, you
couldn't guarantee that the order would be the same when you check for
headers in a group.

This would allow you to use clusters of front end servers in a single farm,
but drop the normal requirement of having to keep them all in sync.  They
would each maintain their own private order for each group based on the
arrivial of the articles on that server.

This would remove the last single point of failure from the news server
design - which is the hardware responsible for assigning unique article
numbers.

But it creates a big problem for the newsreader to deal with since it would
no long be possible to guarantee that the newsreader found out about all
the articles in a group.

This is not a serious proposal.  It's just brainstorming for the fun of it.

> > But, my thought for eliminating article numbers is to also eliminate
> > the need for a news reader to have to keep track of which news server
> > it is talking to.  That is, if it used 5 different servers it could
> > use, it wouldn't have to do what newsreaders do know - which is track
> > article numbers per server.
>
> I just do not understand your point. You still have to keep an
> information (timestamp, sequence, etc.) for the next newnews/xover (you
> just can not assume all servers will receive all articles at same time,
> etc.). And using such a simple information will move part of the
> complexity to the servers (it will have to retrieve an article-id-like
> information according to your timestamp/sequence) and I _really_ prefer
> having complexity moved to client computers (plenty of memory/CPU for a
> single user) and not to servers (plenty of users for little memory/CPU).

Right, but the timestamps would be local to each front end server removing
the requirement that the front end servers be kept in sync.  In the Diablo
world, that would mean no numbering box.  You have multiple peering boxes,
feeding full articles to multiple spool boxes, and each of the spool boxes
feeding heads to each of the front end boxes with no single point of
failure.  Any of the boxes could fail, without disrupting the operation of
the server (assuming you have workable fall-over mechanisms in place so the
transit boxes would always feed articles to some spool.

But then this puts the work down on the client to make sure it has
re-scanned headers to be sure it doesn't miss anything since it no longer
has a reliable way to say "give me all new article headers after the last
time I was updated".

With this approach, there is no guarantee that the news client actually
gets all the headers.  But even without the guarantee, it might work well
enough that no one cares?

The problem is that the server you talk to today, might not have received a
given article because it showed up a day late.  But the server it connects
to the next day, received the article early (maybe it was posted from that
server).  If the client doesn't re-scan for a few days worth of old
articles, it wouldn't find out about that one article.  So each time the
news client connects and tries to get updated headers, it has to re-scan
far enough back in time to deal with the longest possible transit delays -
or else risk missing an article.

I guess if news worked this odd way, other things could also be done to
help reduce the odds of missing an article.  For example, the client could
check the xref data in the headers to see if any message-ids were listed it
didn't know about, and then attempt to get header data for those to fill in
potential gaps.

Overall, it doesn't seem all that good, but like I said, I'm just thinking
out loud and exploring ideas.

> François

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Re: News servers without XOVER and XHDR?
#79459
Author: Curt Welch
Date: Tue, 23 Sep 2008 18:38
31 lines
2839 bytes
Julien_ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:
> Hi Joshua,
>
> > Actually, I found a server that doesn't do XHDR in a sufficient way.
> > It's called GigaNews. Which commands market share.
>
> Trying to find out information about what they implemented, I saw
> discussions saying that XHDR only worked on fields which are in
> their overview database.
>
> Hmm... It is perhaps done because of
>
> GROUP one.of.their.binary.group.with.more.than.2^31.messages
> XHDR Newsgroups 0-
>
> which will take lots of resources on their news servers :)

This was a behavior started by the guys at highwinds.  It was true for
everyone that used the highwinds server software which was most ISPs back
in the late 90's.  I can only assume their server used an xover database
which held only the xover data, and then they implemented a limited version
of XHDR which operated only against their XOVER database and didn't waste
resources trying to fetch full headers to extract the requested fields.

Giganews used to use highwinds software until they wrote their own, so if
their current servers are doing that, it's no doubt that they just cloned
the behavior of the highwinds servers they were once using.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
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