Bug 13636

Summary: problem with the internal time service of inetd
Product: [Retired] Red Hat Linux Reporter: volf
Component: inetdAssignee: Jeff Johnson <jbj>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-07-10 08:43:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description volf 2000-07-10 08:43:40 UTC
I use the time service (in /etc/inetd.conf: time stream tcp nowait root 
internal) for simple time synchronization in small network (~10 computers) 
and after some time (about 20 days) inetd stops working (telnet, pop3, 
ftp, time). It does not reject connections, it closes them immediately. 
In /var/log/messages there is this message:

... inetd[373]: accept (for time): Too many open files

The inetd process has 1024 open files (/proc/{inetd pid}/fd) and 
netstat | grep :time 
gives long list (I suppose 1024 lines) of this kind:

tcp   1   0 {server name}:time  {client IP}:{port}     CLOSE_WAIT

I have to restart inetd to make it work, but number of open files of inetd 
process is still growing with every connection to the time service.

Client computers use Windows NT Workstation 4.0 (timesync, 
http://www.intsoft.com/products/timesync/) and one Linux (netdate).
Telnet to time port has the same effect - connection is not closed by 
server. Very old Slackware Linux did not have this problem.
Server has the kernel 2.2.16 compiled by me.

Martin Volf
qwert

Comment 1 Pekka Savola 2000-07-22 21:31:55 UTC

*** This bug has been marked as a duplicate of 11548 ***