🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #809

Re: How to time-out nntp connections

#809
From: Andy S Poling
Date: Fri, 23 Nov 1990 05:03
38 lines
2396 bytes
In article <1990Nov20.235832.509@wdl1.wdl.fac.com> wrl@wdl1.wdl.fac.com (Bill Lewandowski) writes:
>Background: NNTP1.5.10 sun 3/280 4.0.3
>
>Hi,
>I have a sun server which is our news master. I have 100
>nntp clients who get there news from the server.
>
>We have been running into problems where inetd locks
>new connections out (telnet,rlogin) until someone
>logs off. We think we have hit some type of process table
>limit. We have done some tweaking but no-go.
>
>The only thing we notice is that there are upto 20 nntp connections
>open at one time sitting idle. People are just leaving
>rn,trn,xrn,nn etc open even though there are not reading news.
>
>Question:
>Is there a way to time out these connections after so much idle
>time connected to the nntp port (119) for these users ???

I could be wrong (I'm no BSD or SunOS guru), but I think the limitation
you're seeing is the number of file-descriptors that inetd can have open.

To answer your question... yes, there is a compile-time option to
automatically time-out idle connections.  I had problems with this time-out
code under SysVr3.1.5 - it was timeing connections out after seemingly
random intervals.  I don't yet know whether the fault was with the
NNTP1.5.10 code or a SysV problem - my short term solution was to undef the
compile time option for time-outs.

-Andy

--
Andy Poling                              Internet: andy@gollum.hcf.jhu.edu
UNIX Systems Programmer                  Bitnet: ANDY@JHUNIX
Homewood Academic Computing              Voice: (301)338-8096    
Johns Hopkins University                 UUCP: uunet!mimsy!aplcen!jhunix!andy
Technical Details
Message-ID: <6971@jhunix.HCF.JHU.EDU>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!jhunix!andy
References: <1990Nov20.235832.509@wdl1.wdl.fac.com>

Show Full Headers
Complete Article Headers
Message-ID: <6971@jhunix.HCF.JHU.EDU>
Subject: Re: How to time-out nntp connections
Date: Fri, 23 Nov 1990 05:03:25 +0000
From: andy@jhunix.HCF.JHU.EDU (Andy S Poling)
References: <1990Nov20.235832.509@wdl1.wdl.fac.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!jhunix!andy
Newsgroups: news.software.nntp
Summary: yes and no
Keywords: timeout, file descriptors, inetd
Followup-To: news.software.nntp
Distribution: na
Organization: The Johns Hopkins University - HCF
Lines: 37