Re: inetd with -R -1 patch?

2000-06-23 Thread Sheldon Hearn



On Thu, 08 Jun 2000 12:37:00 +0200, Alexander Langer wrote:

 What about that patch to let one use unlimited numbers of connections?
 The standard is still 256, but if one really wants that...

Personally, I'd prefer it if zero implied an unlimited number of
invokations per service per minute.  However, the special case isn't
really necessary, since you can simply specify some large number (and
then prepare to have your box dragged under). :-)

Ciao,
Sheldon.

PS: Did you test the patch you sent? :-)


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: inetd with -R -1 patch?

2000-06-23 Thread Alexander Langer

Thus spake Sheldon Hearn ([EMAIL PROTECTED]):

 Personally, I'd prefer it if zero implied an unlimited number of

Yes. Fine, too.

 invokations per service per minute.  However, the special case isn't
 really necessary, since you can simply specify some large number (and
 then prepare to have your box dragged under). :-)

Heh. That counts for every piece of software where you can set
"unlimited"

 PS: Did you test the patch you sent? :-)

Yes.

root:~ $ netstat -a | grep localhost.telnet | wc -l
 864

(I wasn't able to stress the system more :)

However, as I just saw, the -R -1 does not work (I tested it with
-DTOOMANY=-1). So -R 0 for unlimited is better (because of strtol).

Alex
-- 
cat: /home/alex/.sig: No such file or directory


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



inetd with -R -1 patch?

2000-06-08 Thread Alexander Langer

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
 #defineTOOMANY 256 /* don't start more than TOOMANY */
+#endif
 #defineCNT_INTVL   60  /* servers in CNT_INTVL sec. */
 #defineRETRYTIME   (60*10) /* retry after bind or server fail */
 #define MAX_MAXCHLD32767   /* 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