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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to