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

From: William Hanwoody <hanwoody_at_gmail.com>
Date: Fri, 5 Dec 2008 09:28:47 +0800

when squid request original server and original server dont response,
then squid will return http code status 0.
but tcp_hit:none means squid didnot request original http server.

very strange.

and I have ever found another strang question:

$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)

$squidclient -p 80 mgr:info
Resource usage for squid:
        UP Time: 11997.030 seconds
        CPU Time: 573.496 seconds
        CPU Usage: 4.78%
        CPU Usage, 5 minute avg: 11.20%
        CPU Usage, 60 minute avg: 3.49%
        Process Data Segment Size via sbrk(): 4292986764 KB
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 2
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
Memory accounted for:
        Total accounted: 2132949 KB
        memPoolAlloc calls: 189731647
        memPoolFree calls: 184764421
File descriptor usage for squid:
        Maximum number of file descriptors: 32768
        Largest file desc currently in use: 25
        Number of file desc currently in use: 25
        Files queued for open: 0
        Available number of file descriptors: 32743
        Reserved number of file descriptors: 100
        Store Disk files open: 0
        IO loop method: epoll
Internal Data Structures:
        181595 StoreEntries
        181595 StoreEntries with MemObjects
        181588 Hot Object Cache Items
             0 on-disk objects

my squid version: 2.7stable5
squid configuration:
cache_mem 1800 MB
cache_dir null /data1/squid/var/cache

在 2008年12月4日 星期四,Amos Jeffries 写道:
> William Hanwoody wrote:
> > 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
> >
> > 60.221.78.60 - - [03/Dec/2008:20:01:23 +0800]
> > 6988 "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)" TCP_HIT:NONE
>
> status 0 means something in the request is broken before it even
> finished parsing.
> It's strange to see HIT, but not unbelievable
>
> Amos
Received on Fri Dec 05 2008 - 01:29:01 MST

This archive was generated by hypermail 2.2.0 : Fri Dec 05 2008 - 12:00:02 MST