Article View: news.software.nntp
Article #15656Re: nnrpd from INN1.5.1 on Solaris 2.5 - Newnews causes core dump
From: J. Porter Clark
Date: Sat, 08 Mar 1997 00:00
Date: Sat, 08 Mar 1997 00:00
46 lines
2674 bytes
2674 bytes
per@erix.ericsson.se (Per Hedeland) writes:
>In article <331FC005.6D4F@att.net.au> Stephen Ollis <ollis@att.net.au> writes:
>>Under 1.5.1, doing a telnet news 119, mode reader, then newnews * 970307
>>000000 GMT causes nnrpd to dump core..
>Try the patch below - don't you just love useless "optimizations" that
>break working code?
>- /* Optimization in case client asks for !* (no groups) */
>- if (!strcmp(groups[0], "!*")) {
>- Reply("%s\r\n", NNTP_NEWNEWSOK);
>- Printf(".\r\n");
>- return;
>- }
You're going to hurt my feelings. I think this optimization was one
of my inventions. What it was intended to counteract was Microsoft
Exchange News Service (not, apparently, to be confused with Microsoft
Internet News Service). Someone at MSFC is/was running a beta version
of this product, and its default behavior was to use a 'pull' feed with
newnews. The person who ran it had limited disk space and only wanted
a handful of newsgroups. After running it in that mode for a couple of
weeks, he decided to turn off the feed. What this made his server do
was to issue "newnews !* <etc.>" every 30 minutes. That's right:
instead of just simply not polling my server for new news, it would
poll for *no* new news. This was silly. What's worse, the polling
caused the newnews code in nnrpd to do a binary search through the
history file looking for the start point, which was always near the end
of the file, and then it would simply ignore the results. I tried
turning off newnews entirely, but the problem then was that the
Microsoft server would make reader connections to my server about once
every five minutes.
Thus, the optimization above was born. This was the only user I had
who used newnews, so I didn't get to test it rigorously.
He's currently running a later version of this server. It is capable
of handling a 'push' feed, and that's what we're using now.
--
J. Porter Clark jpc@drum.msfc.nasa.gov
NASA/MSFC Flight Data Systems Branch
Technical Details
Message-ID:
<5fqonq$k6a$1@hammer.msfc.nasa.gov>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-mailReferences:
<331FC005.6D4F@att.net.au> <5fqkse$n49$1@news.du.etx.ericsson.se>Show Full Headers
Complete Article Headers
Message-ID: <5fqonq$k6a$1@hammer.msfc.nasa.gov> Subject: Re: nnrpd from INN1.5.1 on Solaris 2.5 - Newnews causes core dump Date: Sat, 08 Mar 1997 00:00:00 +0000 From: jpc@drum.msfc.nasa.gov (J. Porter Clark) References: <331FC005.6D4F@att.net.au> <5fqkse$n49$1@news.du.etx.ericsson.se> 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: 223902915 Sender: jpc@hammer.msfc.nasa.gov Organization: NASA/MSFC Newsgroups: news.software.nntp