Article View: news.software.nntp
Article #29837Re: What to do about articles with NULLs?
From: Matt Dillon
Date: Thu, 16 Jul 1998 00:00
Date: Thu, 16 Jul 1998 00:00
48 lines
2977 bytes
2977 bytes
:In article <slrn6qs3n2.8b9.usenet@hmmm.colo.erols.net>,
:Clayton O'Neill <usenet@oneill.net> wrote:
:>On Sat, 11 Jul 1998 22:50:03 +0200, Fluffy -- The Other White Meat <fluffy@vszbr.cz> wrote:
:>
:>I think that news software should mangle these articles, at best it is
:>allowed to reject them. Most of the newer transport software understands
:>how to move articles in an 8-bit clean fashion. Personally, I'd like to see
:>more clients take advantage of this by posting binaries in binary instead of
:>base64/uuencode. It'd save all of us that transit and store binaries an
:>enormous amount of disk space and bandwidth.
:>
:>--
:>blahblahblah@oneill.net/coneill@erols.com
Right now none of the news transports handle the 'final newline' case.
That is, the body of the article must terminate with a final CR LF no
matter what you do, because otherwise you can't parse the '.'-on-a-line-
by-itself-terminates-the-article that comes after.
Beyond that, making the news transport 8-bit clean is pretty easy to
do. You don't need to implement big buffers or even dynamically sized
buffers, you simply need to process the buffers in a byte-oriented
manner and save some simple newline/period state in your raw read loop.
--
One of the biggest problems I had to deal with in Diablo was buffer
management. Specifically, how to prevent memory fragmentation and how
to prevent unnecessary swapping after a fork(). I wound up writing
my own memory allocator that uses anonymous mmap'd regions to allocate
and deallocate memory.
The INN group is welcome to steal Diablo's memory management (or any
other incremental piece) if it wants. It's really a fourth generation
compartmentalized memory management system that started life 10 years ago
in a low-memory embedded OS that I wrote. By organizing the memory
regions properly, memory fragmentation goes away. The Diablo reader
code (dreaderd) allocates one compartment per connection to prevent
fragmentation.
-Matt
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Technical Details
Message-ID:
<6olre6$qod$1@flea.best.net>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:
<Pine.LNX.4.00.9807112227530.511-100000@coredump.int.tele.dk> <slrn6qs3n2.8b9.usenet@hmmm.colo.erols.net>Show Full Headers
Complete Article Headers
Message-ID: <6olre6$qod$1@flea.best.net> Subject: Re: What to do about articles with NULLs? Date: Thu, 16 Jul 1998 00:00:00 +0000 From: dillon@best.net (Matt Dillon) References: <Pine.LNX.4.00.9807112227530.511-100000@coredump.int.tele.dk> <slrn6qs3n2.8b9.usenet@hmmm.colo.erols.net> 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: 372149844 X-Trace: 900624650 11267 dillon 206.184.139.131 Organization: Best Internet Communications, Inc. Newsgroups: news.software.nntp