You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2010/03/02 16:54:22 UTC

DO NOT REPLY [Bug 48842] New: mod_log_config logs the full size of the file instead of how many bytes were transferred.

https://issues.apache.org/bugzilla/show_bug.cgi?id=48842

           Summary: mod_log_config logs the full size of the file instead
                    of how many bytes were transferred.
           Product: Apache httpd-2
           Version: 2.2.14
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_log_config
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: gerbilsoft@verizon.net


In Apache 2.0, the %b format parameter for mod_log_config only logged how many
bytes were transferred for a given HTTP session. In Apache 2.2, it appears to
log the full size of the requested file whether or not the full file was
transferred. (For a continued file, e.g. wget --continue, it always shows the
number of bytes remaining in the transfer.)

Example: Suppose file.bin is 10 MB.

wget http://example.com/file.bin, Ctrl-C at 2 MB - the HTTP log always shows 10
MB transferred.
wget --continue http://example.com/file.bin, Ctrl-C at 4 MB - the HTTP log
always shows 8 MB transferred.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 48842] mod_log_config logs the full size of the file instead of how many bytes were transferred.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48842

Stefan Fritsch <sf...@sfritsch.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Stefan Fritsch <sf...@sfritsch.de> 2010-03-10 21:38:23 UTC ---
Use %O if you want the actual bytes sent. This behaviour is documented:

http://httpd.apache.org/docs/2.2/mod/mod_log_config.html

But the page says it was introduced in 2.0, not 2.2. Are you sure it behaved
differently in 2.0? If yes, maybe the documentation should be adjusted.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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