🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #262817

Pipelining "Article" commands.

#262817
From: Jeff-Relf.Me
Date: Sun, 14 Oct 2018 21:23
38 lines
2355 bytes
> > I "pipeline" 100 "Article" commands at a time ( all at once ),
> > and I use a 4 MegaByte input buffer -- it's very sophisticated.
> 
> Show us the source!

You've seen it; it's "X.CPP" in "Jeff-Relf.Me/X.ZIP".

  LoopJ( er( 100, ReqArts  ) ) d += _Str( d, "Article %I64d\r\n", artNum-- );

Oddly, "Article %d" doesn't work, even though I'm running x64 code. 
Updating Visual Studio may change the "Windows SDK" and the "14.15.26726"
in "C:\__\EXEs\VisualStudio2017\VC\Tools\MSVC\14.15.26726\lib\x64".

My "text" servers: 

  News5.Open-News-Network.ORG
  News2.Open-News-Network.ORG

> > Upon receiving a chunk ( e.g. a 30 KiloByte Article ),
> > I check for proper line endings -- "\r\n" in the header,
> > "\r" and/or "\n" in the body, if the "Content-Type:" is text.
> 
> You do these checks and still get 1000 posts in 4 seconds?

Yes, posts are converted as they're downloaded.

> > I don't parse the Body UnlessAndUntil I have the full header
> > ( so I know what the "Content-Type:" is ).
> > The body itself may have varios (MIME) "Content-Type:" lines.
> 
> Are you storing all the downloaded data in one big file?

Yes, it updates "Cola.TXT" and/or "Phy.TXT";
I keep what I want to read, discarding the rest; see:

  Jeff-Relf.Me/Cola_Regs.HTM

My posts to Usenet ( since Feb 2012 ): Jeff-Relf.Me/Posts.TXT
Technical Details
Message-ID: <Jeff-Relf.Me@Oct.14--2.23pm.Seattle.2018>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.advocacy.(1483839).mbox.7z!not-for-mail
References: <e0777414-4790-4fa0-9ce1-d889f604f26e@googlegroups.com> <0qstD.79312$uJ2.3100@fx27.iad> <055d7376-8773-4ca9-8cd3-4fd8c1a2764f@googlegroups.com> <W1ztD.39291$xo2.777@fx31.iad> <Jeff-Relf.Me@Oct.14--1.41am.Seattle.2018> <ufJwD.316258$Vl2.213729@fx46.iad>

Show Full Headers
Complete Article Headers
Message-ID: <Jeff-Relf.Me@Oct.14--2.23pm.Seattle.2018>
Subject: Pipelining "Article" commands.
Date: Sun, 14 Oct 2018 21:23:37 +0000
From: Jeff-Relf.Me @.
References: <e0777414-4790-4fa0-9ce1-d889f604f26e@googlegroups.com> <0qstD.79312$uJ2.3100@fx27.iad> <055d7376-8773-4ca9-8cd3-4fd8c1a2764f@googlegroups.com> <W1ztD.39291$xo2.777@fx31.iad> <Jeff-Relf.Me@Oct.14--1.41am.Seattle.2018> <ufJwD.316258$Vl2.213729@fx46.iad>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.advocacy.(1483839).mbox.7z!not-for-mail
Content-Type: Text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Newsgroups: comp.os.linux.advocacy,news.software.readers,alt.free.newsservers
User-Agent: Jeff-Relf.Me/X.HTM
Lines: 38
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Sun, 14 Oct 2018 21:23:37 UTC
Organization: usenet-news.net
X-Received-Bytes: 2313
X-Received-Body-CRC: 819696995