Patch-ID# 100178-08
Keywords: broken server detection increase fd limit
Synopsis: SunOS4.1.1;4.1.2;4.1.3: inetd "broken server detection" breaks on fast machines
Date: May/19/93
 
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

Architectures for which this patch is available: sun3 sun4 sun4c sun4m

Patches which may conflict with this patch:

Obsoleted by:  SunOS 5.0

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
...
...

INSTALL:

 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

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

