[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#808941: apache2: HTTP/2 when in use, response size is recorded in the zero byte If you set the %O in LogFormat



* Toshiaki TAKADA <soukaku@downtown.jp> [24-12-15 14:04]:
> Package: apache2
> Version: 2.4.18-1
> Severity: important
> 
> I went a set of Apache2 to test the HTTP/2.
> As a result of checking the access.log, when it is accessed by the HTTP/2, it was noticed that the response data size is recorded in the zero byte.
> 
> HTTP/1.1 :
> 198.51.100.20 - - [22/Dec/2015:00:46:51 +0900] "GET /~soukaku/images/eyecatch0002.jpg HTTP/1.1" 200 44068 "http://www.downtown.jp/~soukaku/archives/2010/0225_225635.html"; "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12"
> 
> HTTP/2 :
> 203.0.113.60 - - [22/Dec/2015:03:35:58 +0900] "GET /~soukaku/images/eyecatch0002.jpg HTTP/2" 200 0 "http://www.downtown.jp/~soukaku/archives/2013/0117_010718.html"; "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/601.3.9"
> 
> Is this a bug?

Hi Toshiaki,

the default logging configuration uses %O and the module logio. According
to [1] this module is not compatible with http/2. One solution is using
%B or %b instead.

-- 
regards

Tom

[1] https://greenbytes.de/pres/httpd-h2/#/3/6


Reply to: