🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #47888

diablo/dnewslink problems

#47888
From: Andrew Gierth
Date: Wed, 16 Aug 2000 00:00
21 lines
1552 bytes
I'm having a little problem with a Diablo feeder box spawning
excessive numbers of dnewslink processes. Diablo 2.3-REL running on
FreeBSD-4.1

The problem seems to be triggered when a peer stops reading data;
dnewslink has no timeout on write calls (!!), so it ends up hung for
an extended period. Eventually, of course, the queue depth for the
peer is reached and the queue file deleted, which then results in more
dnewslinks being started. Repeat until the machine runs out of mbufs.

The fix is obvious: dnewslink needs a write timeout. Unfortunately,
the way that dnewslink is coded makes it very hard to see how to
handle such a timeout safely (currently, error returns from write()
are not really handled at all). 

Any ideas?

-- 
Andrew.

Technical Details
Message-ID: <87vgx1gdb5.fsf@erlenstar.demon.co.uk>
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

Show Full Headers
Complete Article Headers
Message-ID: <87vgx1gdb5.fsf@erlenstar.demon.co.uk>
Subject: diablo/dnewslink problems
Date: Wed, 16 Aug 2000 00:00:00 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
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: 659071876
X-Mayan-Date: Long count = 12.19.7.8.8; tzolkin = 3 Lamat; haab = 11 Yaxkin
X-Complaints-To: andrew@erlenstar.demon.co.uk
Organization: disorganised
X-Attribution: AG
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-P-Persistent-Headers: are a bad idea.
Newsgroups: news.software.nntp
X-Post-Filter: postfilter v0.6 alpha