Re: [squid-users] why http code status is 0 when tcp_hit:none ?

From: William Hanwoody <hanwoody_at_gmail.com>
Date: Mon, 8 Dec 2008 09:28:46 +0800

> tor 2008-12-04 klockan 15:42 +0800 skrev William Hanwoody:
> > squid log:
> > 218.108.56.170 - - [03/Dec/2008:20:01:08 +0800]
> > 6582 "GET /public/js/livecast/function.js HTTP/1.1" 0
> > 0 "http://xxx.com.cn/livecast/k/live.php?id=313" "Mozilla/4.0
> > (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR
> > 3.0.04506.30)" TCP_HIT:NONE
>
> It means the request was aborted before Squid could send the response
> header.
>
> There is a slight delay in HIT processing coming from the disks as it
> takes time to open disk files. If the client aborts in this time window
> then you see log entries like this.
>
> Regards
> Henrik

thanks for your reply.

I have abserved squid logs at that time.
When this happened, the response time of squid is often more than 30 seconds,
and no other urls are abnormal.

I suspect that cache of "http://xxx.com.cn/public/js/livecast/function.js" has
problem, and maybe it's a bug of squid.

I didnot use disk as cache, but mem:
cache_mem 1800 MB
cache_dir null /data1/squid/var/cache

and I often find abnormal output of squidclient:
Memory usage for squid via mallinfo():
        Total space in arena: -1980532 KB
        Ordinary blocks: -1987251 KB 50184 blks
        Small blocks: 0 KB 0 blks
        Holding blocks: 8840 KB 2 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 6718 KB
        Total in use: -1978411 KB 100%
        Total free: 6718 KB 0%
        Total size: -1971692 KB
here, memory size always is negative value? int overflow?

and

$squidclient -p 80 mgr:5min
sample_start_time = 1228439560.788657 (Fri, 05 Dec 2008 01:12:40 GMT)
sample_end_time = 1228444076.391143 (Fri, 05 Dec 2008 02:27:56 GMT)
here, sample time is wrong.
Received on Mon Dec 08 2008 - 01:28:54 MST

This archive was generated by hypermail 2.2.0 : Mon Dec 08 2008 - 12:00:02 MST