[squid-users] Meaning of negative sizes in store.log

2013-07-30 Thread squid
In the sizes fields of store.log, what do negative sizes mean?  For
instance, I'm getting this, and I'm interested in knowing the meaning of
the -312:

...  -1 application/octet-stream 96508744/-312 GET
http://au.v4.download.windowsupdate.com/msdownload/update/software

Thanks
Mark



Re: [squid-users] Meaning of negative sizes in store.log

2013-07-30 Thread Amos Jeffries

On 30/07/2013 10:21 p.m., sq...@peralex.com wrote:

In the sizes fields of store.log, what do negative sizes mean?  For
instance, I'm getting this, and I'm interested in knowing the meaning of
the -312:

...  -1 application/octet-stream 96508744/-312 GET
http://au.v4.download.windowsupdate.com/msdownload/update/software

Thanks
Mark



Good question. And one which will require digging through the code to 
answer I'm afraid.


FWIW I suspect that is a bug in the header vs object calculations. The 
wiki has this to say about the value:



sizes This column consists of two slash separated fields:

 *

   The advertised content length from the HTTP Content-Length reply
   header.

 * The size actually read.
 o If the advertised (or expected) length is missing, it will be
   set to zero. If the advertised length is not zero, but not equal
   to the real length, the object will be released from the cache.



Amos