Hi Willy,
while testing gzip compression with haproxy, I noticed that "bytes_read"
in haproxy logs are the values of uncompressed bytes coming from the
server. In this case, it should be the compressed size.
Maybe Haproxy should provide different fields in the log format :
- %B = the number of bytes sent to the client (after compression or any
other new feature)
- %Bu [u for unmodified] = the number of bytes that should be sent to
the client without any compression (the current %B behaviour)
- and maybe another value to log the compression ratio (%Cr ?).
--
Cyril Bonté