🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #56736

Re: Limiting XOVER by date ?

#56736
From: Curt Welch
Date: Thu, 21 Feb 2002 19:44
52 lines
3974 bytes
archiver@i3w.com (The Archiver) wrote:
> Could you give me an idea about the workload on the host for closing
> the conection - and a full reconnect with auth ?
> As I've been a "windows-only" programmer for the last 20 years
> and  my mainframe experience is outdated I have no idea how much
> work an INN/Typhoon/Whatever running on UNIX/LINUX/BSD... has to
> do for this procedure.

It depends a lot on the design of the server.  INN isn't very good at that
because it forks a new program (nnrpd) to handle each new connection. But
it's still not bad if you are not trying to do 10 a second. It would suck
however if you did it for every article you downloaded.

Authentication can be slow depending on how that's set up for the server.
Sometimes the servers run external programs which then make network
connections to some type of database server to check the authentication.
So, once again, it's not something that's all that bad if you need to do
once every 30 seconds, but would put an unwanded load if you did it once a
second.

My server is designed for very low overhead on new connections.  Doing 10
per second wouldn't really be that bad for it.

The bigger issue is that many servers limit the number of connections you
can make.  And some of them don't do it very well.  There can be a long
delay between the time you close a connection before it correctly accounts
for it and allows you to open a new one in it's place (30 seconds?).
Newsfeeds I believe had this problem as an example.

From a client/end user perspective, you can solve the long
reconnect/authentication delay simply by doing that ahead of time.  If you
always have a spare connection waiting to go, then when you do need to
close one, you don't have to wait for the next one to get started.  But
then you are putting that extra overhead of unused connections on the
server which really isn't very nice.

But, to think about the connection overhead issue, think about web servers.
You make connections, get a page, and close the conection for every page
(ignoring the keepalive feature).

It's not the TCP overhead that's really at issue, it's a function of how
the news sever is set up and how much it does for each new connection.

Closing the connection is fine every now and then, or when the user wants
you to abort, but to be safe, it's not something you should try to do
constantly durring a normal session even though some news servers wouldn't
have a problem using it like that.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20020221144429.476$Sl@newsreader.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!jfk3-feed1.news.digex.net!dca6-feed2.news.digex.net!intermedia!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <14029.d22200@archiver.winews.net> <20020213093719.452$nS@newsreader.com> <39149.e22201@archiver.winews.net> <140220021352177712%planb@newsreaders.com> <37537.j22204@archiver.winews.net> <20020220133703.448$13@newsreader.com> <47447.l22200@archiver.winews.net>

Show Full Headers
Complete Article Headers
Message-ID: <20020221144429.476$Sl@newsreader.com>
Subject: Re: Limiting XOVER by date ?
Date: Thu, 21 Feb 2002 19:44:29 +0000
From: curt@kcwc.com (Curt Welch)
References: <14029.d22200@archiver.winews.net> <20020213093719.452$nS@newsreader.com> <39149.e22201@archiver.winews.net> <140220021352177712%planb@newsreaders.com> <37537.j22204@archiver.winews.net> <20020220133703.448$13@newsreader.com> <47447.l22200@archiver.winews.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!jfk3-feed1.news.digex.net!dca6-feed2.news.digex.net!intermedia!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com HqK7iWlpNJdnfwrn5V-E-oz38z3Uifz.281zfw8_qXD/aUAS
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 51