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

From: Michael Smirnov <smbsmb@dont-contact.us>
Date: Thu, 21 Mar 2002 12:01:58 +0300

> > > 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?!
> >
> 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?!
>
I just installed squid-2.5.PRE5, its behavior didn't change.
Also, I see "OPEN CONNS : 31" for a parent with max-conn=29

I've just seen OPEN CONNS : -2
How can it be? :-)))

I can only guess - maybe keep-alive connections are counted wrong?
I use multi-thread download managers (Flashget, Teleport Pro)
Received on Thu Mar 21 2002 - 02:02:11 MST

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