From owner-freebsd-bugs Thu Feb 14 10:50:13 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 02D9637B417 for ; Thu, 14 Feb 2002 10:50:08 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1EIo7D73596; Thu, 14 Feb 2002 10:50:07 -0800 (PST) (envelope-from gnats) Date: Thu, 14 Feb 2002 10:50:07 -0800 (PST) Message-Id: <200202141850.g1EIo7D73596@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Maxim Konovalov Subject: Re[2]: bin/34934: inetd under load closes socket Reply-To: Maxim Konovalov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/34934; it has been noted by GNATS. From: Maxim Konovalov To: "Alexander S. Usov" Cc: "Alexander S. Usov" , Subject: Re[2]: bin/34934: inetd under load closes socket Date: Thu, 14 Feb 2002 21:48:27 +0300 (MSK) On 20:51+0200, Feb 14, 2002, Alexander S. Usov wrote: > Hello Maxim, > > Thursday, February 14, 2002, 8:35:49 PM, you wrote: > > MK> I believe it is a correct behaviour. From man 8 inetd: > > MK> -R rate > MK> Specify the maximum number of times a service can be > MK> invoked in one minute; the default is 256. A rate of 0 > MK> allows an unlimited number of invocations. > > MK> Did you change the defaults inetd startup flags? Could you please show > MK> grep inetd /etc/rc.conf output? > > ---- /etc/rc.conf --- > inetd_enable="YES" > --------------------- > > ---- /etc/defaults/rc.conf --- > inetd_enable="YES" # Run the network daemon dispatcher (YES/NO). > inetd_program="/usr/sbin/inetd" # path to inetd, if you want a different one. > inetd_flags="-wW" # Optional flags to inetd > ------------------------------ > > --- ps -ax |grep inetd ------- > 620 ?? Is 0:00.96 /usr/sbin/inetd -wW > ------------------------------ So it is quite correct. You can run inetd with -R 0 but I recommend to restrict rate service invocation per IP basis by -C flag. Can I close this PR? -- Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer phone: +7 (095) 796-9079, mailto:maxim@macomnet.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message