🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #550

Re: "too many lines in .newsrc" (RN)

#550
From: mark_silbernagel
Date: Wed, 04 Sep 1991 02:50
34 lines
2143 bytes
In article <1991Aug31.181334.11313@unixland.natick.ma.us>
bill@unixland.natick.ma.us (Bill Heiser) writes:
>I'm running rn that was current as of about a year ago (any recent patches?).
>Recently the newsgroup count on my system exceeded 1500, and users with all
>of them in their .newsrc started seeing "too many lines in .newsrc" and
>rn aborting on start-up.  Also, some users see very very long delays in 
>starting to read news...

We had the 'too many lines' error at first as well. 

Running RN with patchlevel 54...

.. the condition is caught by this line in rcstuff.c...

rcstuff.c:      if (newng >= MAXRCLINE) {       /* check for overflow */

and MAXRCLINE is defined in common.h thusly...

common.h:#define MAXRCLINE 2501 /* number of lines allowed in .newsrc */
common.h:#define HASHSIZ 2609   /* should be prime, and at least MAXRCLINE +
10%

Notice, HASHSIZ is impacted. I used the 'prime' function to generate HASHSIZ
based upon MAXRCLINE plus a minimum comfort level of 10% (or greater, I don't
recall now)

Nothing further was required. In my case, the 2501 seemed unlikely to be hit
anytime soon; watching news.groups... who knows?

Mark Silbernagel                |
Mentor Graphics Corporation     | ...Food from the "Palace
8005 S.W. Boeckman Road         |    of pure thought"  ;')
Wilsonville, OR  97070-7777     |
(503) 685-4738                  |    mark_silbernagel@mentorg.com
Technical Details
Message-ID: <1991Sep04.025045.1804@news.mentorg.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!math.fu-berlin.de!ox.com!caen!zaphod.mps.ohio-state.edu!wupost!uunet!news.mentorg.com!news
References: <1991Aug31.181334.11313@unixland.natick.ma.us>

Show Full Headers
Complete Article Headers
Message-ID: <1991Sep04.025045.1804@news.mentorg.com>
Subject: Re: "too many lines in .newsrc" (RN)
Date: Wed, 04 Sep 1991 02:50:45 +0000
From: mark_silbernagel@mentorg.com
References: <1991Aug31.181334.11313@unixland.natick.ma.us>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!math.fu-berlin.de!ox.com!caen!zaphod.mps.ohio-state.edu!wupost!uunet!news.mentorg.com!news
Newsgroups: news.software.readers
Sender: news@news.mentorg.com (News User)
Organization: Mentor Graphics Corporation
Lines: 34