httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <cliffwool...@yahoo.com>
Subject Re: cvs commit: httpd-2.0/server/mpm/threaded threaded.c
Date Tue, 03 Jul 2001 13:52:59 GMT
On 3 Jul 2001 rbb@apache.org wrote:

>
>   -    if (idle_thread_count > max_spare_threads * ap_max_daemons_limit) {
>   +    if (idle_thread_count > max_spare_threads * total_non_dead) {
>            /* Kill off one child */
>            char char_of_death = '!';
>            if ((rv = apr_file_write(pipe_of_death_out, &char_of_death, &one))
!= APR_SUCCESS) {
>   @@ -1011,7 +1011,7 @@
>            }
>            idle_spawn_rate = 1;
>        }
>   -    else if (idle_thread_count < min_spare_threads * ap_max_daemons_limit) {
>   +    else if (idle_thread_count < min_spare_threads * total_non_dead) {
>            /* terminate the free list */
>            if (free_length == 0) {

Phew, okay, that looks a lot better to me.  I knew there was something
fishy about multiplying by ap_max_daemons_limit.  =-)

--Cliff

--------------------------------------------------------------
   Cliff Woolley
   cliffwoolley@yahoo.com
   Charlottesville, VA



Mime
View raw message