You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marcus Butler <ma...@worldspice.net> on 1999/09/03 23:49:30 UTC

[PATCH] mod_log_config.c

 I run several high-volume webservers with Apache.  Recently, I
disovered some resource starvation on a few of the servers and set about
trying to fix the problem.

 I found out that mod_log_config's piping mechanism does not close the
unused read end of the pipe.  This results in one wasted file descriptor
per piped log.

 The patchfile is attached to this message.  This patch has only been
tested under Linux, but
I suspect it will work under any reasonable platform.

 Marcus Butler

Re: [PATCH] mod_log_config.c

Posted by Dean Gaudet <dg...@arctic.org>.
The unused read end of the pipe is there so that the parent can respawn
the piped log child at any time.  You could close it in the httpd child
processes... but you have to keep it open in the parent. 

Dean

On Fri, 3 Sep 1999, Marcus Butler wrote:

>  I run several high-volume webservers with Apache.  Recently, I
> disovered some resource starvation on a few of the servers and set about
> trying to fix the problem.
> 
>  I found out that mod_log_config's piping mechanism does not close the
> unused read end of the pipe.  This results in one wasted file descriptor
> per piped log.
> 
>  The patchfile is attached to this message.  This patch has only been
> tested under Linux, but
> I suspect it will work under any reasonable platform.
> 
>  Marcus Butler