You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Joe Orton <jo...@redhat.com> on 2005/01/24 16:42:24 UTC

[PATCH] mod_log_config %[bB] clarify

We keep seeing people confused that %[bB] mean different things in 2.0
to 1.3, and the docs don't really do a lot to help here.  Something like
this is more accurate and useful, I think: any comments?

Index: mod/mod_log_config.xml
===================================================================
--- mod/mod_log_config.xml	(revision 126293)
+++ mod/mod_log_config.xml	(working copy)
@@ -77,10 +77,10 @@
         <td>Local IP-address</td></tr>
 
     <tr><td><code>%...B</code></td>
-        <td>Bytes sent, excluding HTTP headers.</td></tr>
+        <td>Size of response in bytes, excluding HTTP headers.</td></tr>
 
     <tr><td><code>%...b</code></td>
-        <td>Bytes sent, excluding HTTP headers. In CLF format, <em>i.e.</em>
+        <td>Size of response in bytes, excluding HTTP headers. In CLF format, <em>i.e.</em>
         a '<code>-</code>' rather than a 0 when no bytes are sent.</td></tr>
 
     <tr><td><code>%...{<var>Foobar</var>}C</code></td>
@@ -237,6 +237,14 @@
     a backslash, and all whitespace characters which are written in their
     C-style notation (<code>\n</code>, <code>\t</code> etc).</p>
 
+    <p>Note that in httpd 2.0, unlike 1.3, the <code>%b</code> and
+    <code>%B</code> format strings do not represent the number of
+    bytes sent to the client, but simply the size in bytes of the HTTP
+    response (which will differ, for instance, if the connection is
+    aborted, or if SSL is used).  The <code>%O</code> format provided
+    by <module>mod_logio</module> will log the actual number of bytes
+    sent over the network.</p>
+
     <p>Some commonly used log format strings are:</p>
 
     <dl>


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: [PATCH] mod_log_config %[bB] clarify

Posted by Hiroaki KAWAI <ka...@iij.ad.jp>.
Joshua Slive <jo...@slive.ca> wrote:
> Andr
> > * Joe Orton <jo...@redhat.com> wrote:
> > 
> > 
> >>We keep seeing people confused that %[bB] mean different things in 2.0
> >>to 1.3, and the docs don't really do a lot to help here.  Something like
> >>this is more accurate and useful, I think: any comments?
> > 
> > 
> > +1.
> 
> +1; although the list of "notes" is getting a little out-of-hand.

+1

---Hiroaki Kawai




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: [PATCH] mod_log_config %[bB] clarify

Posted by Joshua Slive <jo...@slive.ca>.
André Malo wrote:
> * Joe Orton <jo...@redhat.com> wrote:
> 
> 
>>We keep seeing people confused that %[bB] mean different things in 2.0
>>to 1.3, and the docs don't really do a lot to help here.  Something like
>>this is more accurate and useful, I think: any comments?
> 
> 
> +1.

+1; although the list of "notes" is getting a little out-of-hand.

Joshua.


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: [PATCH] mod_log_config %[bB] clarify

Posted by André Malo <nd...@perlig.de>.
* Joe Orton <jo...@redhat.com> wrote:

> We keep seeing people confused that %[bB] mean different things in 2.0
> to 1.3, and the docs don't really do a lot to help here.  Something like
> this is more accurate and useful, I think: any comments?

+1.

nd

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org