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 2012/02/02 10:41:51 UTC

DO NOT REPLY [Bug 52578] New: Wrong "bytes sent" logged when connection is closed prematurely

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

             Bug #: 52578
           Summary: Wrong "bytes sent" logged when connection is closed
                    prematurely
           Product: Apache httpd-2
           Version: 2.2.17
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_log_config
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: markjenkins@mailfish.de
    Classification: Unclassified


The log formats "%B" and "%b" log the full size of the file requested even if
the client reads only a few kB and then closes the connection.

Using "%O" from mod_logio is not an option because it counts the headers too
instead of just the payload.

-- 
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 52578] Wrong "bytes sent" logged when connection is closed prematurely

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

Nick Kew <ni...@webthing.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Nick Kew <ni...@webthing.com> 2012-02-02 10:49:34 UTC ---
You're asking for something non-meaningful.

At the network or connection level (%O) you can't distinguish between metadata
(like the HTTP headers, and chunking information) and payload unless you
re-parse the entire response - which would be a huge overhead.

At the request level (%[Bb]), if a request is aborted you can know how much
data has been encoded for the connection level, but not how much of that has
been sent down the wire.  The latter may also be affected by such things as SSL
encryption.

-- 
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 52578] Wrong "bytes sent" logged when connection is closed prematurely

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

Mark Jenkins <ma...@mailfish.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |

--- Comment #2 from Mark Jenkins <ma...@mailfish.de> 2012-02-02 12:31:27 UTC ---
The write() and sendfile() system calls do tell you how much data has been sent
down the wire. Even at this level you can distinguish between headers and
payload because Apache sends them separately.

-- 
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 52578] Wrong "bytes sent" logged when connection is closed prematurely

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

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

-- 
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