Re: [squid-users] Timeout and max-conn

From: Michael Smirnov <smbsmb@dont-contact.us>
Date: Wed, 20 Mar 2002 20:41:53 +0300

> On Mon, Mar 18, 2002, Michael Smirnov wrote:
> > I have a squid-2.5.PRE4 which uses parent caches with option max-conn=29
> > However, after my "download manager" reconnects to Squid after a
> > timeout,
> > the number of connections I see in cachemgr grows up to 29,
> > and finally I see:
> >
> > Mar 18 20:18:17 ra squid[3711]: Failed to select source for
> > 'http://www.aboutpho
> > ne.info/phorum/read.php?f=1&t=684&a=2'
> > Mar 18 20:18:17 ra squid[3711]: always_direct = 0
> > Mar 18 20:18:17 ra squid[3711]: never_direct = 1
> > Mar 18 20:18:17 ra squid[3711]: timedout = 0
> >
> > So, I can't download anything until I restart Squid.
> > How can I make Squid quickly end these non-existing coonnections?!
>
> "non-existant connections" ?
>
> If they were non-existant, squid wouldn't have them open.
> Enable the cache manager, look at the "open filedescriptors"
> page before and during the above failure, and then report back.
>
There is no "Open Filedescriptors" in my cachemgr, but I see Process
Filedescriptor Allocation
3 Log 0 0 0 /var/log/squid/cache71.log
7 File 0 0 2943 /var/log/squid/access71.log
3 Socket 0 1520 494 .0 DNS Socket
4 Socket 0 0* 0 .0 HTTP Socket
15 Socket 1440 63* 0 x.x.x.x.xxxx
cache_object://ra/filedescriptors

After squid starts, I see "OPEN CONNS : 0" in "Peer Cache Statistics"
After I download something, I sees "OPEN CONNS : 3" , but
netstat shows, that there is no connections to the parent!
(I think, it is not netstat's "Active UNIX domain sockets".
I checked only "Active Internet connections")

I checked - "OPENS CONNS" didn't decrease after 10 minutes.
It becomes 0 only after "squid -k reconfigure".

So, max-conn counter counts wrong?!
Received on Wed Mar 20 2002 - 10:41:58 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:07:00 MST