RE: [squid-users] Squid takes too long to stop.

From: Visolve Squid <[email protected]>
Date: Sat, 16 Sep 2006 17:10:03 +0530

-----Original Message-----
From: Jim John [mailto:jimjohnlists@hotmail.com]
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/
Received on Sat Sep 16 2006 - 05:40:07 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Oct 01 2006 - 12:00:03 MDT