🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #14256

Re: NNTP and cancelling a request for an article body

#14256
From: Brian Hernacki
Date: Tue, 21 Jan 1997 00:00
48 lines
2698 bytes
Brad Templeton wrote:
> 
> Netscape, in creating multithreaded browsing programs, taught us something
> that wasn't thought of when NNTP was designed.

That's a nicer way than most people put it. :)


> How to support it?   I suppose a STOP command could be added and the server
> could listen for it while sending the article by polling the read socket.
> Polling is always a pain though.   The server could also be multithreaded
> so that the STOP command causes a new thread to start which then kills
> the sending thread, ideally by having it append some sort of transfer
> aborted note.

Ben Polk and I talked about this last year alot. One of the ideas I
liked the best that the client could request/recieve a cookie that
identified a specific session. If it wanted to interrupt the current
operation on that connection it could use a second, very short lived
connection to ask the news server to interrupt the connection
(identified by the cookie). The server could then return control of that
connection to the client.

This way a client would only use one connection for normal activity and
a second (maybe on a different port) for the interrupts.


> Alternately one could make it faster and more efficient to stop and
> restart connections to NNTP servers.  One way would be to make NNTP
> stateless, which would make it easier to write the server multithreaded
> (or even the "pool of N processes" style of  some web servers).
> 
> NNTP could be made stateless as follows:

The problem is that NNTP is (or seems) to be designed very much to a
stated protocol. This indirectly drives client software into a stated
model.

If we want a solution in the near future, it would need to be something
clients could easily support. I would think that (1) making the servers
better/faster at detecting dropped connections and (2) an async abort
channel would integrate smoother than moving from a stated protocol to
an unstated one.

--brian

Technical Details
Message-ID: <32E5A75E.12B6@netscape.com>
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
References: <5brhhi$62p@fugue.clari.net>

Show Full Headers
Complete Article Headers
Message-ID: <32E5A75E.12B6@netscape.com>
Subject: Re: NNTP and cancelling a request for an article body
Date: Tue, 21 Jan 1997 00:00:00 +0000
From: Brian Hernacki <bhern@netscape.com>
References: <5brhhi$62p@fugue.clari.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: 211386831
Distribution: inet
Content-type: text/plain; charset=us-ascii
Organization: Netscape, Floating Point Division
Mime-version: 1.0
Newsgroups: news.software.nntp
X-mailer: Mozilla 3.0GoldC (X11; U; SunOS 5.5 sun4u)