httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Subject Re: fd leaks
Date Thu, 06 Feb 1997 22:19:22 GMT
Yeah we should definately be using pfopen() everywhere.  Except for the
few debugging things like -DDEBUG_INCLUDE_CMD in mod_include.c.

BTW, I thought that MaxRequestsPerChild used to default to 0 so that we'd
find leaks.  It still does in httpd.h but not in httpd.conf-dist.  Now
that keep alives will go up to 100 per child, leaks are important to find. 
Note that MaxRequestsPerChild really means "max accept()s called per
child" -- a keepalive session only counts as 1 "request" for the purpose
of MaxRequestsPerChild. 


On Thu, 6 Feb 1997, Randy Terbush wrote:

> I received a piece of mail today where an Apache user pointed out
> a file descriptor leak in mod_asis. This prompted me to look around
> a bit.
> After a quick glance, there seem to be several places (starting with
> the default_handler) where we could be leaking file descriptors
> for timed out connections etc.  Is there a good reason why
> we should not be using pfopen() throughout Apache?

View raw message