Patch-ID# 100178-09
Keywords: broken server detection increase fd limit
Synopsis: SunOS 4.1.1,4.1.2,4.1.3: inetd "broken server detection" breaks on fast machines
Date: Feb/10/94
 
Solaris Release: 1.0 1.0.1 1.1

SunOS Release: 4.1.1 4.1.2 4.1.3
 
Unbundled Product:
 
Unbundled Release:
 
Topic: Increase fd limint on inetd	 
 
BugId's fixed with this patch: 1030599 1112111

Relevant Architectures: sparc
    NOTE: sun3 sun4 sun4c sun4m

Patches which may conflict with this patch:

Patches required with this patch:

Obsoleted by:  
	NOTE:SunOS 5.0

NOTE:
Update -09 [Feb 7, 1994]
The update 08 for this patch has a problem that all of the children forked from inetd also 
have their file descriptors limit raised and this causes problem of file descriptors.

Update -08 [20-April-93]
Bug fixes for id 1112111.

Update -07 [10-Mar-92 and 22-Sep-92]
Added 4.1.2 {and 4.1.3}/sun4,sun4c, and sun4m object module.  The source code did not change.

Update -06 [28-Aug-91]
updated the sun4PSR_A object module.  The source code did not change.

Problem Description:

Bugid 1112111:
The file descriptor limit on inetd is too low. This patch of inetd
make use of the hardlimit for the number of file descriptor which
is 1024.

Bugid 1030599:
inetd refuses to accept more than 40 connects per minute on a 
particular socket (loop detection) 

The SS1 is fast enough, that you can end up legitimately calling 
rsh more than 40 times per minute.

This patch adds a new argument, "-r", to inetd that allows you to 
specify number of connections allowed in the given time in seconds.
The default is to allow 40 connections in a 60 second period, E.G:

/usr/etc/inetd -r 40 60

Typically for a faster machine you might up this to 60 connections 
per minute, E.G:

/usr/etc/inetd -r 60 60

You will need to edit /etc/rc to make the change permanent each 
time the machine is rebooted, E.G:
...
...
if [ -f /usr/etc/inetd ]; then
        inetd -r 60 60;                  echo -n ' inetd'
fi
...
...


Patch Installation Instructions:
--------------------------------
 As root:

# cp /usr/etc/inetd /usr/etc/inetd.FCS
# cp `arch`/{4.1.1,4.1.2,4.1.3}/inetd /usr/etc/inetd
# chmod 755 /usr/etc/inetd


Special Install Instructions: 
-----------------------------
At this point you will need to reboot your system by either doing
a halt; reboot; or shutdown and reboot.
