🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92780

Re: inn scalability improvements

#92780
From: InterLinked
Date: Wed, 13 May 2026 03:59
44 lines
3746 bytes
On 5/12/2026 11:30 PM, Kevin Bowling wrote:
> On 5/12/26 19:46, InterLinked wrote:
>> I guess what I'm trying to say is that for SMTP, because there are 
>> multiple ways to send/receive messages, it makes sense to store the 
>> messages in the "queue" normalized (without dot-stuffing), but since 
>> there's only one way in NNTP, it makes more sense to just store the 
>> stuffed lines in the spool directly. Is this about the gist of it?
>>
>> (And implicitly, I'm assuming that in the future, it would be hard to 
>> support other extensions like SMTP has since I would assume most news 
>> server are storing the dots in the spool; of course, such extensions 
>> are probably of little value to NNTP considering most articles are 
>> small).
> 
> Can you post some example transactions showing your thoughts?
> 
> One thing that comes to mind is probably to synthesize the header(s) and 
> sendfile at an offset of the body.  The synthesized part could be stack 
> allocated.  Likewise any trailer if 'wireformat' is off.

That is similar to what I'm talking about, though I think wireformat in 
INN is just line endings (whether to store the CR or not). I was talking 
about storing the leading dot in dot-stuffed lines in the spool (same 
idea really). I believe that INN does this unconditionally without any 
way to disable it... because why would you want to? Unlike SMTP, it does 
not appear to me there are any use cases in NNTP (currently) where it 
would be useful to normalize them out of the message.

In SMTP, you may or may not need to dot-stuff depending on how the 
message gets sent, so there, it seems logical to store messages with the 
dot removed.

But suppose NNTP ever had an extension like CHUNKING with a BDAT 
command. (I don't really see such a thing being useful, outside of 
binary groups maybe, but let's suppose.) Then there could be cases where 
you wouldn't send articles dot-stuffed, but that would vary by 
transmission and in that case, maybe it would make sense to normalize 
the message, so you could frame it in different ways. And yeah, you 
could use sendfile for parts of the message, but not all of it and there 
would be more parsing involved.

There are a lot of potentially useful extensions in SMTP and IMAP that 
could be useful in NNTP, but admittedly I don't see this being a likely 
scenario.
Technical Details
Message-ID: <10u0sve$2eart$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <10tofqn$edc$1@csiph.com> <10tpg5u$70e0$1@news.trigofacile.com> <10tr9m7$b63$1@csiph.com> <10u0ola$2df35$1@dont-email.me> <10u0r8a$2oc$1@csiph.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: InterLinked <nntp@phreaknet.org>
Newsgroups: news.software.nntp
Subject: Re: inn scalability improvements
Date: Tue, 12 May 2026 23:59:40 -0400
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <10u0sve$2eart$1@dont-email.me>
References: <10tofqn$edc$1@csiph.com> <10tpg5u$70e0$1@news.trigofacile.com>
 <10tr9m7$b63$1@csiph.com> <10u0ola$2df35$1@dont-email.me>
 <10u0r8a$2oc$1@csiph.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 13 May 2026 03:59:43 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2567037"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX197105YZvOenO6/i7SHk7xDCWnw10iW1JE="; posting-host="21efc2bad640fa2e0c54a3542b3513a3"
Cancel-Lock: sha1:5GzVd3MtS59s4IbZ1IA9bwOsWT4= sha256:j4+wLotrkaN+PGE4DvEJzOYdt/tpCOmDXtJA11wmo38=
	sha1:HxPnSnaUUivnTIPuyKrFcqd3Na0=
Content-Language: en-US
In-Reply-To: <10u0r8a$2oc$1@csiph.com>
X-Mailer: MailNews/52.9.9224a1