]> granicus.if.org Git - apache/commitdiff
mod_log_config: %c connection status incorrectly logged
authorBill Stoddard <stoddard@apache.org>
Wed, 2 May 2001 13:37:22 +0000 (13:37 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 2 May 2001 13:37:22 +0000 (13:37 +0000)
as "-" (non-keepalive) when MaxKeepAliveRequests is set to 0.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88974 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/loggers/mod_log_config.c

diff --git a/CHANGES b/CHANGES
index 9258562dbcf8b8553d0c09e4b0df23899f0ebcd8..9f5e4eed4e3ebd109f04230a88b7d77c30ab75cd 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,10 @@
 Changes with Apache 2.0.18-dev
+  *) mod_log_config: %c connection status incorrectly logged
+     as "-" (non-keepalive) when MaxKeepAliveRequests is set to 0.
+     [Bill Stoddard]
+
+  *) Get mod_cern_meta working under Windows
+     [Bill Stoddard]
 
   *) Create Files, and thus MMAPs, out of the request pool, not the
      connection pool.  This solves a small resource leak that had us
index 562ca457932a33fb1219c7477163ac1fd1d388e2..c2b655c4553582cd756bcb9d3609713aa99bdcfb 100644 (file)
@@ -533,8 +533,9 @@ 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)) {
+    if (r->connection->keepalive && 
+        (!r->server->keep_alive_max ||
+         (r->server->keep_alive_max - r->connection->keepalives) > 0)) {
         return "+";
     }
     return "-";