Thread View: news.software.nntp
3 messages
3 total messages
Started by Moebius Meowbot
Sat, 28 Oct 2000 19:40
Overview (buffindexed) questions -- INN 2.3.1
Author: Moebius Meowbot
Date: Sat, 28 Oct 2000 19:40
Date: Sat, 28 Oct 2000 19:40
93 lines
5339 bytes
5339 bytes
Hey! First off, I'm using 06.Okt snapshot of INN-STABLE, since I have quite a bunch of patches applied to this and I'd prefer to avoid shoehorning all these into a more recent snapshot if there are still bugs in it... These observations are made with buffindexed overview method, since I didn't have enough obvious problems with ovdb to investigate closely. Now, the questions: * In order to (theoretically) better handle the XHDR requests that I have seen at, say, http://news.inet.tele.dk/innreport/news-notice.2000.10.25-04.30.52.html#nnrpd_xhdr_commands I have decided to add a few lines to overview.fmt to add things like the NNTP-Posting-Host and Path headers to the overview database. Is this a bad thing? Should I leave overview.fmt alone? Am I breaking what readers expect to see when giving the `xover' command? It appears that by adding the `Path:' header to the stored overview data, I've b0rkened something. Looking at the raw overview data, I see that the separating `!' characters between elements of the Path header have been replaced by NUL characters. Kewl. The `!' characters elsewhere (subjects) are unaffected. This seems to break a few things. Like the `xover' command. Hmmm. And any overview data following the `Path' data. If I make a connection and ask for `xhdr path ##' for a particular article, I get just the first (last) entry of the local machine. Now, another interesting thing: If I ask for `xhdr path: ##' for the same article, I get the correct data. This brings me to the next question: I can get identical data for `xhdr subject ##' and `xhdr subject: ##' commands. As the Xref data follows the NUL-infested Path overview data, I get no response for `xhdr xref ##' while I do get the correct expected response for `xhdr xref: ##' This makes me think that nnrpd's `xhdr' command returns data from the overview proper when the header is given without the `:' colon, but has to go to the spool and pull it out of the article proper when I do specify the `header:' with a colon. Not sure if this is intended behaviour, if I should even be including the colon, or what... Anyway, the next thing I noted is that while I'm using a virtualpath or whatever that is added to the headers as returned by `article' or `head', I don't get these in the `xhdr' headers. Now, `xover' is totally b0rken with these NULs in the Path, so I don't know if the data returned by that is properly virtually-host-ified in the right places -- Xref and Path I think is all. Next weirdness seems to be that innd will happily write the overview data for buffindexed itself, but if I pass the duties to overchan, it writes nothing. I could have botched something here, but `truss' shows every write failing with a Bad File Number or something. I've simply changed the inn.conf from ovdb (actually ovdb2) storage to buffindexed. What is way kewl is that this b0rken `xover' result (coredump when run from commandline) means most readers can't read, while it works just fine for me. HAW HAW SUCKERS, the obvious superiority of `lynx' as a Real Newsreader manifests itself yet again. There are a few other things I'd wonder about, but I'll see if I can get `xover' to work first without bombing. Question: Are any of these known bugs that have been fixed in 2.3 in the last month or two? Or am I just doing something horribly evil? If these are fixed, it might be worth upgrading. Unless there are plans to fix the apparently missing things like virtualhost entries, or if the xover Path: header bug is still present, in which case I probably should wait a day or two and enjoy a reader machine that only us 31337 lynx users can access, unless I fix 'em meself. Another question: Apparently I could run `makehistory' to recreate the overview database for missing entries with ovdb2 as new articles came in. Can I do this with buffindexed, or do I need to take everything down for a few days (or just forget about already-present articles)? I haven't seen a clear answer that I could dig up... One final question -- I'm having a bit of difficulty porting INN 1.0 to the ENIAC so if anyone would like to give me a hand I'd appreciate it gracias
Re: Overview (buffindexed) questions -- INN 2.3.1
Author: Mandelbrot Meowbot
Date: Sat, 28 Oct 2000 22:34
Date: Sat, 28 Oct 2000 22:34
126 lines
5908 bytes
5908 bytes
I SHALL NOW BREACH ALL MANNER OF USENET NETIQUETTE BY WANTONLY
AND SHAMELESSLY FOLLOWING UP TO MY OWN POST
> http://news.inet.tele.dk/innreport/news-notice.2000.10.25-04.30.52.html#nnrpd_xhdr_commands
Idiot. Maybe you'd have better luck pointing people at
http://news.inet.tele.dk/innreport/news-notice.2000.10.25-04.30.52.html#nnrpd_xhdr_cmds
If you're too cheap to invest in a mouse, at least proofread your drivel.
> Is this a bad thing? Should I leave overview.fmt alone? Am I breaking
> what readers expect to see when giving the `xover' command?
And if not, why not.
> It appears that by adding the `Path:' header to the stored overview
> data, I've b0rkened something. Looking at the raw overview data, I
> see that the separating `!' characters between elements of the Path
> header have been replaced by NUL characters. Kewl.
That was pretty easy to track down and fix. The following hack
enables me to write a proper and justifiable Path: header
--- art.c-Before-OV-Path Wed Oct 11 20:11:05 2000
+++ art.c Sat Oct 28 22:46:14 2000
@@ -492,13 +492,15 @@
}
}
- if (NeedPath) {
+/* XXXXX stash a copy of the Path header... ALSO NeedPath no longer needed
+ in other file newsfeeds.c
+ if (NeedPath) { */
Data->Path = path;
for (i = Data->Body - path; --i >= 0; path++)
if (*path == '\r' || *path == '\n')
break;
Data->PathLength = path - Data->Path;
- }
+/* XXXX } */
if (ARTheaders[_lines].Found == 0) {
sprintf(Data->Lines, "Lines: %d\r\n", Data->LinesValue);
@@ -1960,6 +1962,14 @@
/* HDR(_newsgroups) is separated by '\0', so use Data->Newsgroups
instead */
BUFFappend(&Overview, Data->Newsgroups, Data->NewsgroupsLength);
+ } else if (caseEQ(hp->Name, "Path")) {
+ /* HDR(_path) is separated by '\0', so use Data->Path and others
+ instead */
+ if (!Hassamepath)
+ BUFFappend(&Overview, Path.Data, Path.Used);
+ if (AddAlias)
+ BUFFappend(&Overview, Pathalias.Data, Pathalias.Used);
+ BUFFappend(&Overview, Data->Path, Data->PathLength);
} else {
BUFFappend(&Overview, hp->Value, hp->Length);
}
> This seems to break a few things. Like the `xover' command. Hmmm.
> And any overview data following the `Path' data.
Now these both work as before. Oh well.
> This makes me think that nnrpd's `xhdr' command returns data from
> the overview proper when the header is given without the `:' colon,
> but has to go to the spool and pull it out of the article proper
> when I do specify the `header:' with a colon. Not sure if this is
> intended behaviour, if I should even be including the colon, or
It's probably an Undocumented Feature that can be used in cases of
emergency or suspected overview problems, but since I haven't logged
anyone giving those commands, I don't think I'll run into it in Real
Life, and I wouldn't have if I had not b0rkened the Xref: xover header
in unexpected and mysterious ways in the first place.
> what...
Read my lips, bay-bee
> Anyway, the next thing I noted is that while I'm using a virtualpath
> or whatever that is added to the headers as returned by `article' or
> `head', I don't get these in the `xhdr' headers.
But I do get a proper virtualpath added/replacing the Xref: header
in both the `xover' and `xhdr xref ##' commands. The fact that I
can bypass this and get to the raw article data was only a freak
accident.
> Next weirdness seems to be that innd will happily write the overview
> data for buffindexed itself, but if I pass the duties to overchan, it
> writes nothing.
Well DUH, if I'm trying to write `NUL' characters, no wonder. Now
that I'm no longer doing this, it works fine as expected. I should
be the posterchild for waiting an hour before posting...
> are plans to fix the apparently missing things like virtualhost
The Path: header virtualhost, if it worked when I wasn't writing
this into overview, now is b0rken, while the Xref: header is fine.
I've added Path:full like Xref:full to the overview.fmt file, and
it should be relatively painless to duplicate the Xref virtualpath
functionality into the Path header for both xover and xhdr retrieved
from overview.
If I'm not ruining things by attempting to mix Path header data in
the rest of the overview data, that is. Anyway, with the above
simple patch, I've solved most of the rest of my misery.
> One final question -- I'm having a bit of difficulty porting INN 1.0
> to the ENIAC so if anyone would like to give me a hand I'd appreciate it
I'd just like to take a moment to thank everyone for the rounds of
applause, *sniff* you don't know how much it means to me...
Re: Overview (buffindexed) questions -- INN 2.3.1
Author: Moire Meowbot
Date: Wed, 01 Nov 2000 06:40
Date: Wed, 01 Nov 2000 06:40
25 lines
2232 bytes
2232 bytes
Mandelbrot Meowbot <meowbot@Clueless.NewsBastards.Org> meowed: >> Is this a bad thing? Should I leave overview.fmt alone? Am I breaking >> what readers expect to see when giving the `xover' command? > And if not, why not. ISTR that some lusereaders got upset if Xref appeared in other than the eighththt position, but adding more stuff seems to be largely harmless. Your 110 bps clients will, of course, not appreciate the larger XOVER output, but them's the breaks. One way to reconcile would be to steal diablo's k0dez, dump the whole friggin header into NOV, and use overview.fmt to sort it out later. Then XHDR/XPAT get a free ride. Not that I'm volunteering, mind you. >> One final question -- I'm having a bit of difficulty porting INN 1.0 >> to the ENIAC so if anyone would like to give me a hand I'd appreciate it Palm nntpd. You know you want it. -- "We'll cut off his head, cut off his skin, cut off his two toes, then we'll cook him." - Stinky T. Davis
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