httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: child_timeouts and set_callback_and_alarm
Date Fri, 12 Dec 1997 20:13:38 GMT
Dean Gaudet wrote:
> 
> Ok the solution is going to be to change a bunch of the #ifndef
> OPTIMIZE_TIMEOUTS to also be compiled when OPTIMIZE_TIMEOUTS but also test
> child_timeouts.  Grr. 

Woa. Won't this work?


*** Ohttp_main.c	Fri Dec 12 15:08:23 1997
--- http_main.c	Fri Dec 12 15:12:58 1997
***************
*** 3181,3187 ****
  	    ++total_non_dead;
  	    last_non_dead = i;
  #ifdef OPTIMIZE_TIMEOUTS
! 	    if (ss->timeout_len) {
  		/* if it's a live server, with a live timeout then
  		 * start checking its timeout */
  		parent_score *ps = &scoreboard_image->parent[i];
--- 3181,3187 ----
  	    ++total_non_dead;
  	    last_non_dead = i;
  #ifdef OPTIMIZE_TIMEOUTS
! 	    if (ss->timeout_len || child_timeouts) {
  		/* if it's a live server, with a live timeout then
  		 * start checking its timeout */
  		parent_score *ps = &scoreboard_image->parent[i];
***************
*** 3191,3197 ****
  		    ps->last_rtime = now;
  		    ps->last_vtime = ss->cur_vtime;
  		}
! 		else if (ps->last_rtime + ss->timeout_len < now) {
  		    /* no progress, and the timeout length has been exceeded */
  		    ss->timeout_len = 0;
  		    kill(ps->pid, SIGALRM);
--- 3191,3198 ----
  		    ps->last_rtime = now;
  		    ps->last_vtime = ss->cur_vtime;
  		}
! 		else if (ps->last_rtime + ss->timeout_len < now
! 		 && !child_timeouts) {
  		    /* no progress, and the timeout length has been exceeded */
  		    ss->timeout_len = 0;
  		    kill(ps->pid, SIGALRM);
> 
> Dean
> 
> On Fri, 12 Dec 1997, Jim Jagielski wrote:
> 
> > This is mostly to Dean... I usually don't run with the status module
> > anymore but figured I'd give it a try. Thing is, with 1.3b3, the SS
> > value is way wrong... I _think_ it has something to do with the
> > way set_callback_and_alarm() is coded since timeout_len isn't
> > being adjusted (since child_timeouts is true)... Thus, _rtime isn't
> > being adjusted as time goes by :/
> > -- 
> > ====================================================================
> >       Jim Jagielski            |       jaguNET Access Services
> >      jim@jaguNET.com           |       http://www.jaguNET.com/
> >             "Look at me! I'm wearing a cardboard belt!"
> > 
> 
> 


-- 
====================================================================
      Jim Jagielski            |       jaguNET Access Services
     jim@jaguNET.com           |       http://www.jaguNET.com/
            "Look at me! I'm wearing a cardboard belt!"

Mime
View raw message