From nobody@FreeBSD.org  Thu Feb 14 09:52:07 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 4F6A537B41A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Feb 2002 09:51:54 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g1EHpsi61319;
	Thu, 14 Feb 2002 09:51:54 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200202141751.g1EHpsi61319@freefall.freebsd.org>
Date: Thu, 14 Feb 2002 09:51:54 -0800 (PST)
From: "Alexander S. Usov" <usov@itv.kiev.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: inetd under load closes socket
X-Send-Pr-Version: www-1.0

>Number:         34934
>Category:       bin
>Synopsis:       inetd under load closes socket
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 14 10:00:02 PST 2002
>Closed-Date:    Thu Feb 14 11:12:54 PST 2002
>Last-Modified:  Thu Feb 14 11:14:44 PST 2002
>Originator:     Alexander S. Usov
>Release:        4.5-STABLE
>Organization:
ITV
>Environment:
FreeBSD darkini.itv 4.5-STABLE FreeBSD 4.5-STABLE #0: Sun Feb  3 17:52:08 EET 2002     lex@darkini.itv:/usr/src/sys/compile/DARKINI  i386
>Description:
      For mail delivery I use qpopper-4.0_1 & inetd. Today we found I small problem. If two peoples are trying to receive mail with MS OutLook together during some period of time(repetitiously connecting to the server) inetd closes it's socket. "killall -1 inetd" solves that problem. sockstat shows no socket darkini:pop3 which belongs to inetd.
>How-To-Repeat:
      Do the same.
>Fix:
      ?
>Release-Note:
>Audit-Trail:

From: Maxim Konovalov <maxim@macomnet.ru>
To: "Alexander S. Usov" <usov@itv.kiev.ua>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/34934: inetd under load closes socket
Date: Thu, 14 Feb 2002 21:35:49 +0300 (MSK)

 I believe it is a correct behaviour. From man 8 inetd:
 
      -R rate
              Specify the maximum number of times a service can be
              invoked in one minute; the default is 256.  A rate of 0
              allows an unlimited number of invocations.
 
 Did you change the defaults inetd startup flags? Could you please show
 grep inetd /etc/rc.conf output?
 
 -- 
 Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer
 phone: +7 (095) 796-9079, mailto:maxim@macomnet.ru
 

From: "Alexander S. Usov" <lex@itv.kiev.ua>
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: "Alexander S. Usov" <usov@itv.kiev.ua>,
	freebsd-gnats-submit@FreeBSD.ORG
Subject: Re[2]: bin/34934: inetd under load closes socket
Date: Thu, 14 Feb 2002 20:51:12 +0200

 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
 ------------------------------
 
 -- 
 Best regards,
  Alexander                            mailto:lex@itv.kiev.ua
 

From: Maxim Konovalov <maxim@macomnet.ru>
To: "Alexander S. Usov" <lex@itv.kiev.ua>
Cc: "Alexander S. Usov" <usov@itv.kiev.ua>,
	<freebsd-gnats-submit@FreeBSD.ORG>
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
 

From: "Alexander S. Usov" <lex@itv.kiev.ua>
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re[3]: bin/34934: inetd under load closes socket
Date: Thu, 14 Feb 2002 21:01:09 +0200

 Hello Maxim,
 
 Thursday, February 14, 2002, 8:48:27 PM, you wrote:
 
 MK> On 20:51+0200, Feb 14, 2002, Alexander S. Usov wrote:
 
 .... skipped ....
 
 MK> So it is quite correct. You can run inetd with -R 0 but I recommend to
 MK> restrict rate service invocation per IP basis by -C flag.
 
 MK> Can I close this PR?
 
     OK. Thanx.
 
 -- 
 Best regards,
  Alexander                            mailto:lex@itv.kiev.ua
 
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Thu Feb 14 11:12:54 PST 2002 
State-Changed-Why:  
inetd(8)'s default maximum number of times a service can be 
invoked in one minute is 256 which can be overridden by -c, 
-C and -R flags. Submitter agreed it is not a bug. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34934 
>Unformatted:
