httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject cvs commit: apache-1.3/src/main http_main.c
Date Fri, 25 Apr 2003 13:50:23 GMT
martin      2003/04/25 06:50:23

  Modified:    src      CHANGES
               src/main http_main.c
  Log:
  A newly created child now has a start_time of 0, to prevent
  mod_status from displaying a bogus value for the "time to
  process most recent request" column for freshly-started children
  in a previously-used scoreboard slot.
  
  Revision  Changes    Path
  1.1888    +5 -0      apache-1.3/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/CHANGES,v
  retrieving revision 1.1887
  retrieving revision 1.1888
  diff -u -r1.1887 -r1.1888
  --- CHANGES	24 Apr 2003 16:08:19 -0000	1.1887
  +++ CHANGES	25 Apr 2003 13:50:22 -0000	1.1888
  @@ -1,5 +1,10 @@
   Changes with Apache 1.3.28
   
  +  *) A newly created child now has a start_time of 0, to prevent
  +     mod_status from displaying a bogus value for the "time to
  +     process most recent request" column for freshly-started children
  +     in a previously-used scoreboard slot. [Martin Kraemer]
  +
     *) When using Redirect in directory context, append requested query
        string if there's no one supplied by configuration. PR 10961.
        [André Malo]
  
  
  
  1.602     +5 -0      apache-1.3/src/main/http_main.c
  
  Index: http_main.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/http_main.c,v
  retrieving revision 1.601
  retrieving revision 1.602
  diff -u -r1.601 -r1.602
  --- http_main.c	3 Feb 2003 17:13:21 -0000	1.601
  +++ http_main.c	25 Apr 2003 13:50:23 -0000	1.602
  @@ -2576,6 +2576,11 @@
   	    ss->conn_count = (unsigned short) 0;
   	    ss->conn_bytes = (unsigned long) 0;
   	}
  +        else if (status == SERVER_STARTING) {
  +            /* clean out the start_time so that mod_status will print Req=0 */
  +            /* Use memset to be independent from the type (struct timeval vs. clock_t)
*/
  +            memset (&ss->start_time, '\0', sizeof ss->start_time);
  +        }
   	if (r) {
   	    conn_rec *c = r->connection;
   	    ap_cpystrn(ss->client, ap_get_remote_host(c, r->per_dir_config,
  
  
  

Mime
View raw message