httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: httpd-2.0/modules/loggers mod_log_config.c
Date Sat, 21 Apr 2001 22:18:00 GMT
rbb         01/04/21 15:18:00

  Modified:    modules/loggers mod_log_config.c
  Log:
  Put the keep-alive connection logging back.
  
  Revision  Changes    Path
  1.57      +13 -0     httpd-2.0/modules/loggers/mod_log_config.c
  
  Index: mod_log_config.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/loggers/mod_log_config.c,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -d -b -w -u -r1.56 -r1.57
  --- mod_log_config.c	2001/04/21 12:23:37	1.56
  +++ mod_log_config.c	2001/04/21 22:17:59	1.57
  @@ -528,6 +528,18 @@
       return apr_psprintf(r->pool, "%ld", (long) getpid());
   }
   
  +static const char *log_connection_status(request_rec *r, char *a)
  +{
  +    if (r->connection->aborted)
  +        return "X";
  +
  +    if ((r->connection->keepalive) &&
  +        ((r->server->keep_alive_max - r->connection->keepalives) > 0)) {
  +        return "+";
  +    }
  +    return "-";
  +}
  +
   /*****************************************************************
    *
    * Parsing the log format string
  @@ -1177,6 +1189,7 @@
           log_pfn_register(p, "H", log_request_protocol, 0);
           log_pfn_register(p, "m", log_request_method, 0);
           log_pfn_register(p, "q", log_request_query, 0);
  +        log_pfn_register(p, "c", log_connection_status, 0);
           log_pfn_register(p, "C", log_cookie, 0);
           log_pfn_register(p, "r", log_request_line, 1);
           log_pfn_register(p, "D", log_request_duration_microseconds, 1);
  
  
  

Mime
View raw message