Changes with Apache 2.3.0
[ When backported to 2.2.x, remove entry from this file ]
+ *) Add new LogFormat parameter, %k, which logs the number of
+ keepalive requests on this connection for this request..
+ [Dan Poirier <poirier pobox.com>]
+
*) Be tolerant in what you accept - accept slightly broken
status lines from a backend provide they include a valid status code.
PR 44995 [Rainer Jung <rainer.jung kippdata.de>
<td>The contents of <code><var>Foobar</var>:</code> header line(s)
in the request sent to the server.</td></tr>
+ <tr><td><code>%k</code></td>
+ <td>Number of requests handled on this connection. Interesting if
+ <directive module="core">KeepAlive</directive> is being used;
+ otherwise this is always 0.</td></tr>
+
<tr><td><code>%l</code></td>
<td>Remote logname (from identd, if supplied). This will return a
dash unless <module>mod_ident</module> is present and <directive
* %...A: local IP-address
* %...{Foobar}i: The contents of Foobar: header line(s) in the request
* sent to the client.
+ * %...k: number of requests served over this connection
* %...l: remote logname (from identd, if supplied)
* %...{Foobar}n: The contents of note "Foobar" from another module.
* %...{Foobar}o: The contents of Foobar: header line(s) in the reply.
return "-";
}
+static const char *log_requests_on_connection(request_rec *r, char *a)
+{
+ return apr_itoa(r->pool, r->connection->keepalives);
+}
+
/*****************************************************************
*
* Parsing the log format string
log_pfn_register(p, "q", log_request_query, 0);
log_pfn_register(p, "X", log_connection_status, 0);
log_pfn_register(p, "C", log_cookie, 0);
+ log_pfn_register(p, "k", log_requests_on_connection, 0);
log_pfn_register(p, "r", log_request_line, 1);
log_pfn_register(p, "D", log_request_duration_microseconds, 1);
log_pfn_register(p, "T", log_request_duration, 1);