🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #465

NNTP's IHAVE gets carried away

#465
From: Randal Schwartz
Date: Mon, 26 Feb 1990 19:20
28 lines
2116 bytes
I just ran across a bug in the internal handshaking between
gethistent() and ihave() in the NNTP server rev 1.5.7, and wonder if
anyone has a clean fix.

If the client says "IHAVE <123@foo.com>", and <123@foo.com> has
expired or been cancelled, the NNTP server gleefully replies with
CONT_XFER (go ahead, make my day...), which the client then interprets
as a request to feed it.  But, as soon as inews gets a hold of it
(well, OK, relaynews in Cnews's case), it gets dropped as a duplicate.

This is because gethistent() has only two things to say: "yes I have
it, and it is in file /usr/spool/news/gnu/emacs/123", or "nope, don't
have it", neither of which is true for an expired/cancelled article.

I suppose a quick fix would be to have gethistent() return "/dev/null"
for an expired article, but that reeeeeeeks of a kludge.  And I don't
know what that would break.

Has anyone else fixed this?  Or am I the only one that is worrying
about hundreds of dups a day from my three NNTP feeds?

Just another confused news admin,
-- 
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III      |
| merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/
Technical Details
Message-ID: <1990Feb26.192046.15663@iwarp.intel.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!cs.utexas.edu!yale!mintaka!ogicse!littlei!omepd!iwarp.intel.com!news

Show Full Headers
Complete Article Headers
Message-ID: <1990Feb26.192046.15663@iwarp.intel.com>
Subject: NNTP's IHAVE gets carried away
Date: Mon, 26 Feb 1990 19:20:46 +0000
From: merlyn@iwarp.intel.com (Randal Schwartz)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!cs.utexas.edu!yale!mintaka!ogicse!littlei!omepd!iwarp.intel.com!news
Newsgroups: news.software.nntp,news.software.b
Sender: news@iwarp.intel.com
Reply-To: merlyn@iwarp.intel.com (Randal Schwartz)
Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA
Lines: 27