Project

General

Profile

Bug #1890

%X in accesslog.format not working as expected

Added by gerald about 8 years ago. Updated 10 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_accesslog
Target version:
Start date:
2009-02-06
Due date:
% Done:

100%

Missing in 1.5.x:

Description

I'm running 1.4.19-0ubuntu3 on Ubuntu 8.04. It looks like "%X" in accesslog.format doesn't show "X" for aborted transfers. For example, if I add

accesslog.format = "%h V %u %t \"%r\" %>s %b \"{Referer}i\" \"%{User-Agent}i\" \"%{Content-Length}o\" %X"

to my configuration, then start a transfer using wget and hit ^C before it's finished, the following shows up in the access log:

x.y.z.q media-2.cacetech.com - [06/Feb/2009:14:11:37 0800] "GET /wireshark/prerelease/WiresharkPortable-0.99.8pre1.paf.exe HTTP/1.0" 200 880321 "" "Wget/1.11.4" "17021795" +

The transfer clearly didn't finish (880321 << 17021795). Shouldn't there be an "X" at the end of the log file entry?

Is there any other way to signal an aborted transfer in the log file? Right now, AWStats is inflating my download stats and I'd rather have accurate numbers.

Associated revisions

Revision 45021708 (diff)
Added by gstrauss 11 months ago

[mod_accesslog] report aborted con state with %X (fixes #1890)

(compatibility with Apache
https://httpd.apache.org/docs/trunk/mod/mod_log_config.html)

x-ref:
"%X in accesslog.format not working as expected"
https://redmine.lighttpd.net/issues/1890

History

#1 Updated by gstrauss 11 months ago

  • Category set to mod_accesslog

#2 Updated by gstrauss 11 months ago

  • Status changed from New to Patch Pending
  • Target version set to 1.4.40

#3 Updated by gstrauss 10 months ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100

Also available in: Atom