Hello,

Janno Sannik wrote:
> IdleTimeout seemes to work as expected, but as there is some child 
> processing request it won't make any new children and server was stalled 
> until that request  (large file download) finished. Anybody know what 
> i'm doing wrong:? All children that allready exist work okay.

My function:
static int total_processes(int child_num)
{
     int i, total;

     for(i = 0, total = 0; i < NUM_CHILDS; ++i)
     {
     if(CHILD_INFO_TABLE[i].senv == CHILD_INFO_TABLE[child_num].senv &&
         (!(CHILD_INFO_TABLE[i].type == CHILD_TYPE_PROCESSOR &&
         CHILD_INFO_TABLE[i].status == CHILD_STATUS_STANDBY)))
     {
         total++;
     }
     }

     return total;
}

And this condition:
(idle_processors (i) > 1 || total_processes (i) == 1)

resolves this feature

_______________________________________________
Peruser mailing list
[email protected]
http://www.telana.com/mailman/listinfo/peruser

Reply via email to