🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #1201

nntpd keeps history file open

#1201
From: Ed Anselmo
Date: Mon, 03 Jun 1991 16:01
27 lines
1737 bytes
Server configuration: Sun SS-1, 16 MB memory, SunOS 4.1.1, nntp
1.5.11, 24-Mar-91 C News + relaynews daemon patches, DBZ.

What I'm seeing:

When a newsreader does an ARTICLE command, like GNUS does when it
follows "References: " header lines, nntpd opens /usr/lib/news/history
and /usr/lib/new/history.{dir,pag} to retreive the path to the
article.

ofiles shows that nntpd keeps the /usr/lib/news/history file
open for the duration of the nntp session.  On long-running sessions
(> 2 days, I don't like to restart GNUS, so I have #undef TIMEOUT in
common/conf.h), this means that old history files are kept open even
after they are unlinked by newsbin/expire/doexpire.  Eventually, I run
out of space in the $NEWSLIB partition.  Closing my GNUS session frees
up mucho space.

Can I just fclose() the history file in gethistent() (I think this is
where it's getting opened), or would this have some terrible side
effect?

Is some sort of configuration error on my part?  Everything seems to
be working well otherwise.

	-- Ed
Technical Details
Message-ID: <1991Jun3.160120.392@cs.yale.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!think.com!yale!cs.yale.edu!anselmo-ed

Show Full Headers
Complete Article Headers
Message-ID: <1991Jun3.160120.392@cs.yale.edu>
Subject: nntpd keeps history file open
Date: Mon, 03 Jun 1991 16:01:20 +0000
From: anselmo-ed@cs.yale.edu (Ed Anselmo)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!think.com!yale!cs.yale.edu!anselmo-ed
Newsgroups: news.software.nntp
Sender: news@cs.yale.edu (Usenet News)
Organization: Yale University, Dept. of Computer Science, New Haven, CT
Lines: 26
Nntp-Posting-Host: bigbird.cf.cs.yale.edu