🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #18150

Re: INN-1.5.1 dying

#18150
From: coneill
Date: Mon, 02 Jun 1997 00:00
22 lines
1517 bytes
Jeff Garzik <jeff.garzik@spinne.com> writes:

> It models itself after Clayton O'Neill's patch, but stores hash values
> instead of copying the msg id string each time.  It also adds cache
> stats and logging of said stats, and some warnings to debug the history
> cache code.
> 
> It still crashes...
> +     hash_val = dbzhash(Data->MessageID, Data->MessageIDLength);

This line is probably the problem.  MessageIDLength is not always valid.
You need to replace Data->MessageIDLength with strlen(Data->MessageID).

IMHO the real solution to this problem is to switch to md5 for the hash
function and store the hash in the dbz data file.  Then just mmap the 
.pag file.  Everyone should have enough memory to keep a copy of the
.pag file in memory.  I'm planning on doing this work when I finish 
stablizing my patches wrt to 1.5.1.


Technical Details
Message-ID: <86raekr8jt.fsf@blah.erols.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!not-for-mail
References: <5mt7et$s52$1@turing.mathworks.com> <5mtdlr$ndu$1@hammer.msfc.nasa.gov> <5mtnuo$ehr@news.webspan.net> <3392B6AC.3940FE37@spinne.com>

Show Full Headers
Complete Article Headers
Message-ID: <86raekr8jt.fsf@blah.erols.com>
Subject: Re: INN-1.5.1 dying
Date: Mon, 02 Jun 1997 00:00:00 +0000
From: coneill@blah.erols.com
References: <5mt7et$s52$1@turing.mathworks.com> <5mtdlr$ndu$1@hammer.msfc.nasa.gov> <5mtnuo$ehr@news.webspan.net> <3392B6AC.3940FE37@spinne.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!not-for-mail
X-Deja-AN: 245673063
Organization: Erol's Internet Services
X-Received-On: 2 Jun 1997 17:36:45 GMT
Newsgroups: news.software.nntp