🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #15800

Re: patch for nnrpd 1.5.1 to mmap .overview files

#15800
From: Andrew A. Vasilyev
Date: Wed, 12 Mar 1997 00:00
22 lines
1560 bytes
In news.software.nntp Jan-Pieter Cornet <johnpc@xs4all.nl> wrote:
JC>"Oops". That is most probably the reason Chris Bellomy sees the huge
JC>performance decrease with this patch... or it could be getpagesize doesn't
JC>work on solaris 2.5.1.

  getpagesize() works fine, but you've not answered the question: why is
  it necessary to align maped region on page boundary?

  AND there is at least one more bug: if we have a single line in .overview
  file, we get a second "bad format" error (after second memrchr() in
  do {} while() loop). Probably the author correct this problem?

JC>I've patched these problems in my source. Patch included below.
JC>Note: this is a patch against the earlier patched version! If you want
JC>the entire patch, contact me.

  It's funny but I've also named the real mmap size as 'OVERmsize' :))
_______
	ANDY

Technical Details
Message-ID: <5g61g0$hak$2@news.demos.su>
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: <331EE55D.1493@cwix.net> <5fmjjf$qcg$1@news1.xs4all.nl> <5fn38s$3q0$1@news1.xs4all.nl> <5fv1s9$8ki$1@news.demos.su> <5g429n$d2s$1@news1.xs4all.nl>

Show Full Headers
Complete Article Headers
Message-ID: <5g61g0$hak$2@news.demos.su>
Subject: Re: patch for nnrpd 1.5.1 to mmap .overview files
Date: Wed, 12 Mar 1997 00:00:00 +0000
From: Andrew A. Vasilyev <andy@snm.demos.su>
References: <331EE55D.1493@cwix.net> <5fmjjf$qcg$1@news1.xs4all.nl> <5fn38s$3q0$1@news1.xs4all.nl> <5fv1s9$8ki$1@news.demos.su> <5g429n$d2s$1@news1.xs4all.nl>
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: 224897396
Distribution: world
Organization: Demos Online Service
Newsgroups: news.software.nntp