[squid-users] How to get the correct size of a denied object ?
Amos Jeffries
squid3 at treenet.co.nz
Mon Jul 20 17:34:00 UTC 2015
On 21/07/2015 4:40 a.m., Stakres wrote:
> Antony,
> I got this idea too, but here we "lose" (i mean it's not overwritten) the
> info in the access.log and there is no effect of realtime if you see what I
> mean...
> An alternative could to catch the TCP_DENIED with a helper but I did not
> find the way yet, i think it cannot be done this way.
You do reaize that objects have many sizes right?
... the gzip compressed size? bzip2 compressed size? chunked encoding
size? what chunk size? (overheads differ by chunk size), what IMS
response size?
identify size? if text 8-, 16- or 32-bit characters? what language?
(variable words)
or should you log the size of response *actually* delivered to the
client? eg. the error message.
Most of those are not known without downloading the object in full. Any
of the client headers may also cause embeded content to change. Such as
language headers changing charsets of the content.
Amos
More information about the squid-users
mailing list