-----Original Message-----
From: Jim John [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 9:55 PM
To: squid-users@squid-cache.org
Subject: [squid-users] Squid takes too long to stop.

Hi all. We have squid set up for transparency using shorewall, but it takes 
too long to stop. Can we simply direct traffic away from squid using 
shorewall before we stop squid instead of afterwards? Is there another way 
to stop squid faster and safer because our users lose connection while squid

is stopping, which takes 2 minutes or so. This also happens for reload when 
we have squidGuard child processes running under squid. Thanks.


Hello John,

Check the shutdown_lifetime directive in squid.conf.

shutdown_lifetime       time-units
       
When SIGTERM or SIGHUP is received, the cache is put into "shutdown pending"
mode until all active sockets are closed. This value is the lifetime to set
for all open descriptors during shutdown mode.  Any active clients after
this many seconds will receive a 'timeout' message.


Thanks,
Visolve Squid team
www.visolve.com/squid/





Reply via email to