Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 26299 invoked by uid 500); 11 Aug 2001 02:48:23 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 26288 invoked from network); 11 Aug 2001 02:48:22 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Ryan Bloom Reply-To: rbb@covalent.net Organization: Covalent Technologies To: new-httpd@apache.org, Shail Bhatnagar Subject: Re: File descriptor loss on graceful restart Date: Fri, 10 Aug 2001 19:49:02 -0700 X-Mailer: KMail [version 1.2] Cc: shbhatna@cisco.com References: <3B743876.95F7A008@cisco.com> In-Reply-To: <3B743876.95F7A008@cisco.com> MIME-Version: 1.0 Message-Id: <01081019490201.24893@koj.rkbloom.net> Content-Transfer-Encoding: 8bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Status: O X-Status: X-Keywords: X-UID: 481 You are likely to be losing one for each socket. I keep meaning to fix this bug. Ryan On Friday 10 August 2001 12:39, Shail Bhatnagar wrote: > I put the following code fragment in > server/main.c : > > (added code is preceeded by '+' sign) > > ap_run_optional_fn_retrieve(); > + { > + #include > + > + int fd = open("/tmp", O_RDONLY); > + > + ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, > + "Master httpd before ap_mpm_run() : " > + "sbrk(0) = %x, fd count = %d\n", > + (unsigned int)sbrk(0), fd); > + close(fd); > + } > if (ap_mpm_run(pconf, plog, server_conf)) break; > > > When I do a graceful restart in a loop, say every 20 > seconds (without http traffic), I see that the master > httpd looses one file descriptor per graceful restart. > I say this on the basis of the ap_log_error() output - > the fd count just keeps going up. > > Is there a known bug ? This only happens when rotation > of error and/or access log is enabled. > > This is httpd-2.0.16 beta code. > > Thanks for your time, > Shail -- ______________________________________________________________ Ryan Bloom rbb@apache.org Covalent Technologies rbb@covalent.net --------------------------------------------------------------