trying to narrow down nnrpd problem ... in newgroups?

The Hermit Hacker scrappy at hub.org
Wed Oct 6 03:41:19 UTC 1999


Got it...haven't got a clue how to fix it, but at least I'm 99.9% certain
that I've narrowed it down...

Issuing teh following just hangs...I added a bit of debugging code, and it
appears that around like 599 of nnrpd/commands.c, there is a loop that
starts:

syslog(L_ERROR, "%s getting active.times", ClientHost);
    /* Read the file, ignoring long lines. */
    while ((p = QIOread(qp)) != NULL) {
        if ((q = strchr(p, ' ')) == NULL)
            continue;

the 'syslog' error at the beginning I added...as well as one right after
the loop ends...the loop doesn't appear to ever end...

my ~news/db/active.times file contained...10k lines to it...

As soon as I reduced that file to 1 entry...problem goes away...

amendment: I just let it run through and it eventually did...so, for my
trial, it does appear to eventually end, but its takes quite awhile :(
I still think there might be a problem here, but am not sure if its
fixable...in my case, it took almost 5 minutes to return 628
newsgroups..and this was telnet'd into the localhost, so no netlag mixes
into the equation...

would it not make more sense to have active.times written out as:

date group creator

and that way the loop would get down to pretty much:

read teh first 9 lines of the line, if that is great then date user 
requested, then process that line

vs the character by character check we are doing now because the date
happens to be the middle field?  the date is a fixed lenght, so, I would
think, would be the perfect candidate for putting at the start, vs end, of
the line...no?



On Wed, 6 Oct 1999, The Hermit Hacker wrote:

> 
> I get this:
> 
> news    62493 11.1  1.3 27572 10264  ??  RN   10:57PM   0:08.37 nnrpd: localhost.hub.org newgroups (nnrpd)
> 
> from issuing:
> 
> 200 hub.org InterNetNews server INN 2.3experimental 27-Aug-1999 ready
> mode reader
> 200 hub.org InterNetNews NNRP server INN 2.3experimental 27-Aug-1999 ready (posting ok).
> newgroups
> 501 yymmdd hhmmss ["GMT"] [<distributions>]
> newgroups 991001
> 501 yymmdd hhmmss ["GMT"] [<distributions>]
> newgroups 991001 000000
> ^]
> telnet> quit
> Connection closed.
> %
> 
> And, after exiting, it still is pounding away:
> 
> news     62493  7.5  2.3 32136 18004  ??  RN   10:57PM   0:18.02 nnrpd: localhost.hub.org newgroups (nnrpd)
> 
> Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
> Systems Administrator @ hub.org 
> primary: scrappy at hub.org           secondary: scrappy@{freebsd|postgresql}.org 
> 
> 

Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: scrappy at hub.org           secondary: scrappy@{freebsd|postgresql}.org 




More information about the inn-workers mailing list