🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #59288

Re: threading problems on custom nntp server

#59288
From: Curt Welch
Date: Sat, 22 Jun 2002 19:56
57 lines
3681 bytes
charles@semo.net (Charles M.) wrote:
> "Charles M." <charles@semo.net> wrote in message
> news:<uh4k8qn82pdc58@corp.supernews.com>...
> > I've written a newsgroup server, but when newsreaders get headers via
> > XOVER, the resulting threads are incorrect.  I only started noticing
> > this when threads get to be more than a few levels deep.  The behavior
> > is that some
>
> To see the behavior log on to 65.168.98.66
>
> User name: test
> Password: test
>
> Thanks everyone for help

Your server needs a lot of work.  You have lots of commands which do
nothing (like next, head, stat, body, help).  They should either work
correctly or return a 500 error.  Authinfo commands only
work when authinfo is in upper case but for some odd reason rejects
authinication when "authinfo" is in lower case.  Invalid commands
cause the server to disconnect.  They should return a 500 error.

"xover 1-" doesn't work.  It was hard at first to find a command which
worked correctly.

Anyhow, your thread bug happens because your xover code is broken.
Articles which have no References: header show the References: header for
the previous article when xover is producing output for multiple article.

So, article 31 has no references header.  If you do "XOVER 31", it produces
a valid xover ouput like this:

31      Hi All  "April" <april@avimark.net>     Fri, 21 Jun 2002 16:09:53
-0500 <31@test.com>      39       3       Xref: test.com test:31

But if you do xover 30-31, you get:

30      Re: Billy the Goat! (Please Add 1 Sentence to Story)    "Kermit
\"the Killer Frog\"" <chuck@avimark.net>    Fri, 21 Jun 2002 13:56:31 -0500
<30@test.com>   <3@test.com> <17@test.com> <18@test.com> <19@test.com>
<25@test.com> <26@test.com> <28@test.com>    678     20      Xref: test.com
test:30 31      Hi All  "April" <april@avimark.net>     Fri, 21 Jun 2002
16:09:53 -0500 <31@test.com>   <3@test.com> <17@test.com> <18@test.com>
<19@test.com> <25@test.com> <26@test.com> <28@test.com>    39 Xref:
test.com test:31

i.e., the xover data for article 31 is showing the references header from
article 30.  So, not surprising, newsreaders get confused.

You know, this stuff really isn't that hard to figure out.  If you simply
looked at what your newsserver was sending the newsreader for the article
which you knew was not showing up correctly you should have seen the bug.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20020622155636.737$Rk@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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <uh4k8qn82pdc58@corp.supernews.com> <9c63a5df.0206220636.7a71b41f@posting.google.com>

Show Full Headers
Complete Article Headers
Message-ID: <20020622155636.737$Rk@newsreader.com>
Subject: Re: threading problems on custom nntp server
Date: Sat, 22 Jun 2002 19:56:36 +0000
From: curt@kcwc.com (Curt Welch)
References: <uh4k8qn82pdc58@corp.supernews.com> <9c63a5df.0206220636.7a71b41f@posting.google.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com _=Yz267Ho5+ibDv3CNfZ0FwZpdn5i3@vS.VItDrzSzV0++-p+m
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-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 56