🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Gina Bull Wed, 22 Nov 2000 00:00
Overchan/nnrpd deadlock in INN 2.2.3
#49144
Author: Gina Bull
Date: Wed, 22 Nov 2000 00:00
27 lines
2109 bytes
I found the source of my supposed overchan inability to keep up.
The problem was that in INN 2.2.3 (traditional spool), overchan 
must lock the .overview file for write access, but must wait in a 
queue of nnrpd processes that have the file open, usually in response 
to an XOVER. The nnrpd process does not close the .overview file until 
another NNTP call such as a GROUP is issued. That may have been 
acceptable at one time, but since overchan was backing up for many 
minutes (30 or more) behind these reader processes in our most popular 
local newsgroup, it was causing problems. 

The information about version 2.3 indicates that it does overview in
a completely different way now, and will require a major downtime in
order to install. Since I can't do that on the spur of the moment, I
fixed and recompiled nnrpd. The system is now working as expected --
no overchan backups, low cpu usage, reading/posting working normally.

If you're interested, the fix consisted of changing three instances of
    if (innconf->storageapi)
        OVERclose();
in article.c to remove the "if". Every function that uses the overview
file does an open if it needs to, so there is no reason to NOT close
the file if using a traditional storage method as opposed to storageapi.

Gina Bull
UVa News Administrator

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