From owner-freebsd-current Thu Jun 8 3:37:18 2000 Delivered-To: freebsd-current@freebsd.org Received: from mail.surf1.de (mail.surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id 5155637BB3B for ; Thu, 8 Jun 2000 03:37:08 -0700 (PDT) (envelope-from alex@big.endian.de) Received: from neutron.cichlids.com (p3E9C116C.dip0.t-ipconnect.de [62.156.17.108]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id MAA30052 for ; Thu, 8 Jun 2000 12:37:06 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (Postfix) with ESMTP id 2CEC5AC30 for ; Thu, 8 Jun 2000 12:37:01 +0200 (CEST) Received: by cichlids.cichlids.com (Postfix, from userid 1001) id 2D16814A6E; Thu, 8 Jun 2000 12:37:00 +0200 (CEST) Date: Thu, 8 Jun 2000 12:37:00 +0200 From: Alexander Langer To: current@freebsd.org Subject: inetd with -R -1 patch? Message-ID: <20000608123700.A22155@cichlids.cichlids.com> Mail-Followup-To: current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello! What about that patch to let one use unlimited numbers of connections? The standard is still 256, but if one really wants that... Index: inetd.c =================================================================== RCS file: /usr/home/ncvs/src/usr.sbin/inetd/inetd.c,v retrieving revision 1.81 diff -u -r1.81 inetd.c --- inetd.c 2000/04/02 16:11:14 1.81 +++ inetd.c 2000/06/08 10:33:42 @@ -191,7 +191,9 @@ < 0 = no limit */ #endif +#ifndef TOOMANY #define TOOMANY 256 /* don't start more than TOOMANY */ +#endif #define CNT_INTVL 60 /* servers in CNT_INTVL sec. */ #define RETRYTIME (60*10) /* retry after bind or server fail */ #define MAX_MAXCHLD 32767 /* max allowable max children */ @@ -590,7 +592,7 @@ if (dofork) { if (sep->se_count++ == 0) (void)gettimeofday(&sep->se_time, (struct timezone *)NULL); - else if (sep->se_count >= toomany) { + else if (toomany >= 0 && sep->se_count >= toomany) { struct timeval now; (void)gettimeofday(&now, (struct timezone *)NULL); Alex -- This is a FreeBSD advocacy ~/.sig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message