On Thu, 1 Mar 2001, Craig Foster wrote:

> > The e-smith configuration is actually:
> >
> > cache_peer proxy.someisp.net.au parent 3128 7 no-query default
> >
> > > Therefore the cache will try the web page before asking the
> > parent cache.
> > > Wouldn't it be preferrable to remove the "default", allowing
> > squid to pass
> > > all TCP/MISSes to be fetched from the proxy.
> >
> > Are you quite sure that all pages are queried direct, and not through
> the
> > patent cache?
>
> tail -f /var/log/squid/access.log lists *plenty* of TCP-MISSes during
> normal use
>
> was
> "TCP_MISS/200 5042 GET http://www.fsck.com/pub/rt/contrib/ -
> DIRECT/www.fsck.com text/html"
> now
> "TCP_REFRESH_MISS/200 25002 GET http://www.theregister.co.uk/ -
> FIRST_UP_PARENT/recycled-02.iinet.net.au text/html"

OK, here is the answer:

http://www.squid-cache.org/Doc/FAQ/FAQ-11.html#ss11.15

This message was received at squid-bugs:

     If you have only one parent, configured as:

             cache_host xxxx parent 3128 3130 no-query default

     nothing is sent to the parent; neither UDP packets, nor TCP
connections.

Simply adding default to a parent does not force all requests to be sent
to that parent. The term default is perhaps a poor choice of words. A
default parent is only used as a last resort. If the cache is able to make
direct connections, direct will be preferred over default. If you want to
force all requests to your parent cache(s), use the never_direct option:

        acl all src 0.0.0.0/0.0.0.0
        never_direct allow all

=========================================================================

If you'd like to make a contribution, split up template-begin into
appropriately sized and named chunks, based on up to date examples, and
send it back as a patch.

Thanks for pointing out the problem.

-- 

  Charlie Brady                         [EMAIL PROTECTED]
  http://www.e-smith.org (development)  http://www.e-smith.com (corporate)
  Phone: +1 (613) 368 4376 or 564 8000  Fax: +1 (613) 564 7739
  e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada


Reply via email to