Bug 14876 - inetd accumulates fd's
inetd accumulates fd's
Status: CLOSED DUPLICATE of bug 11548
Product: Red Hat Linux
Classification: Retired
Component: inetd (Show other bugs)
6.2
i386 Linux
high Severity medium
: ---
: ---
Assigned To: Jeff Johnson
:
: 12779 14687 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-07-31 08:45 EDT by ae
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-08-03 06:27:39 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description ae 2000-07-31 08:45:34 EDT
if /etc/inetd.conf turns on the time/tcp service,
then connections are left in a CLOSE_WAIT state.

For me, a handful of Solaris and Linux clients will
cause the server's inetd to reach its fd limit
in a few days.  

RHL 6.2, kernel-2.2.14-12 (686, smp),  inetd-0.16-4
Comment 1 Jeff Johnson 2000-08-01 17:34:41 EDT
*** Bug 14687 has been marked as a duplicate of this bug. ***
Comment 2 Jeff Johnson 2000-08-01 17:45:30 EDT
*** Bug 12779 has been marked as a duplicate of this bug. ***
Comment 3 h0e 2000-08-03 06:27:39 EDT
heh.
--- netkit-base-0.16/inetd/inetd.c~	Wed Nov 24 06:31:53 1999
+++ netkit-base-0.16/inetd/inetd.c	Thu Aug  3 20:25:17 2000
@@ -485,12 +485,12 @@
 			FD_CLR(sep->se_fd, &allsock);
 			nsock--;
 		}
-		if (!sep->se_wait && sep->se_socktype == SOCK_STREAM)
-			close(ctrl);
 	}
 	else {
 		sep->se_bi->bi_fn(ctrl, sep);
 	}
+	if (ctrl != sep->se_fd)
+		close(ctrl);
 }
 
 static
Comment 4 Pekka Savola 2000-08-07 04:10:51 EDT

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

Note You need to log in before you can comment on or make changes to this bug.