🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #3066

Re: Netscape opens new NNTP connection for each article and group?

#3066
From: Phillip M. Hallam-Baker
Date: Tue, 22 Nov 1994 20:37
42 lines
3030 bytes
In article <TML.94Nov22113948@tiuhti.tte.vtt.fi>, tml@hemuli.tte.vtt.fi (Tor Lillqvist) writes:

|>I am running INN 1.4. I have noticed that when a user reads news with
|>Netscape (for Windows, presumably), it opens a lot of short NNTP
|>sessions (`articles 1 groups 0' or `articles 0 groups 1' in the log).
|>I don't think this is a good idea for obvious reasons. 
|>
|>Is this how it is supposed to be? What is the rationale behind this?
|>So far only one of our users seem to be using Netscape to read news,
|>but I fear that the innd forking will get quite wild when/if more
|>start using it...

Nope that is how it should be. NNTP has the paradigm wrong, not the Web.
Keeping the connection open only makes sense if you intend to interface via
the NNTP idea of how a client should be structured. This has produced a lot
of pretty tacky browsers which all have an interface like rn. With hypertext
the natrual patterns of use tend to make keeping the state in the server 
useless, Web users tend to hop from mail to news to other pages in a pretty
random order. Locking up an NNTP session for a Web client is not a good thing.

Simple solution to your inetd problem, run the daemon directly. inetd is an
optimiser to reduce the number of daemons cluttering the place up. If you have
an nntp server machine then the nntp deamon should run directly on the port
beacuse it will have a lot of use anyway. Running via inetd is asking for
trouble because most inetds break if the load goes over a pretty small
threashold (sometimes as low as 20 connects/sec), Plus inetds often don't
clean up properly tcp/ip wise. 

The nntp daemon should be no worse than an HTTP daemon which on most systems
will quite happily fork at a pretty nice rate. (Remember forking processes
is cheap on UNIX, Ken Thompson said it was true so it must be :-). Unless you
have 20 people connecting per second you should be OK. If this is a problem
then your existing nntp system must always be running out of processes anyway
since if each user reads 1 page/min you would have to have 1200 users to
get your system into the danger zone the traditional NNTP way.

--
Phillip M. Hallam-Baker

Not Speaking for anyone else.
Technical Details
Message-ID: <Czoryo.1Cx@news.cern.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.infosystems.www.misc.mbox.zip!nntp.gmd.de!xlink.net!howland.reston.ans.net!Germany.EU.net!EU.net!CERN.ch!dxal18.cern.ch!hallam
References: <TML.94Nov22113948@tiuhti.tte.vtt.fi>

Show Full Headers
Complete Article Headers
Message-ID: <Czoryo.1Cx@news.cern.ch>
Subject: Re: Netscape opens new NNTP connection for each article and group?
Date: Tue, 22 Nov 1994 20:37:36 GMT
From: hallam@dxal18.cern.ch (Phillip M. Hallam-Baker)
References: <TML.94Nov22113948@tiuhti.tte.vtt.fi>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.infosystems.www.misc.mbox.zip!nntp.gmd.de!xlink.net!howland.reston.ans.net!Germany.EU.net!EU.net!CERN.ch!dxal18.cern.ch!hallam
Newsgroups: news.software.nntp,comp.infosystems.www.misc
Sender: news@news.cern.ch (USENET News System)
Reply-To: hallam@dxal18.cern.ch
Organization: Wot!!! Me ????
Lines: 41