Article View: news.software.nntp
Article #33490INN and sockets
From: Fluffy
Date: Thu, 03 Dec 1998 00:00
Date: Thu, 03 Dec 1998 00:00
42 lines
2596 bytes
2596 bytes
Looking through the sample configs from pre-2.0 tarballs, it looks to
me like pretty much every platform these days is able to support the
HAVE_UNIX_DOMAIN_SOCKETS feature. Does anyone know of any glaring
exceptions? I'm talking about stuff in mainstream use, not historical
curiosities.
See, the reason I'm wondering is that the only way to add an entry to
history right now is to either use ctlinnd's seriously icky
one-shot-per-connection run/control socket, or to pause and seize
direct control of history; better performing if you're adding a lot of
entries like with Olaf's nifty fastcancel toy, but still kind of icky.
What I thought might be nicer is to give innd an ADDHIST command.
Like in,
addhist <m30w$zrbj$woof@meow.meow.meow.meow.honk>
999 Okeydokey.
This would obviously be a dangerous toy, so I'd like to keep it
disabled altogether on INET sockets, only making it available via the
relatively secure run/nntpin socket. Then, a long-term connection
could exist and feed a stream of these ADDHIST commands right into the
daemon for straightforward processing.
Why, you didn't ask? Well, authenticated cancel/supersedes/replaces
stuff is going to be here eventually, the processing isn't going to be
free (hell, it's slow now if you want to do old-style pretend
verification) and anything that tightens up the main select() loop
can't be all bad. So I wanna try hanging it off the side.
And yeah, I already realize that supersedes have to be handled in
there too, but it's cheaper to notice those headers and tag an article
for some superneato cancel feed than to muck around with history and
stuff in real time.
And also-yeah, I realize this would add a couple nanoseconds of
latency to cancels, but hey, them's the breaks.
So is this as dumb an idea as it sounds?
Technical Details
Message-ID:
<745m4r$7np$1@meowhost.meow.invalid>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-mailShow Full Headers
Complete Article Headers
Message-ID: <745m4r$7np$1@meowhost.meow.invalid> Subject: INN and sockets Date: Thu, 03 Dec 1998 00:00:00 +0000 From: gerglery@usa.net (Fluffy) 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: 418179709 Mail-Copies-To: never X-Complaints-To: abuse@demon.net X-Mail2News-Path: news.demon.net!out2.ibm.net!meowhost.meow.invalid X-Trace: mail2news.demon.co.uk 912677873 mail2news:19709 mail2news mail2news.demon.co.uk Organization: Ruler of Usenet (all) X-URL: http://members.tripod.com/~gerglery/ Newsgroups: news.software.nntp X-Meow: Meow