> -----Original Message-----
> From: "Michal W." [mailto:mihalw@vp.pl]
> Sent: Wednesday, November 23, 2005 12:11 PM
> To: squid-users@squid-cache.org
> Subject: [squid-users] Squid slow shutdown
>
>
> Hello,
>
> I am using Squid on a home desktop system
> (Linux/Gentoo/AMD64), which is
> typically shutdown several times a day.
> During system shutdown it takes quite a long time (~30
> seconds) to stop
> Squid.
> (This time is about the same when I stop Squid manually by
> running init
> scripts or calling "squid -k shutdown").
>
> I am aware that Squids needs to shutdown cleanly, but it
> appears it does
> nothing (minimal cpu/disc activity).
> Is it normal, or is there something wrong with my setup?
>
> Thanks,
> Michal
>
>
From squid.conf.default:
# TAG: 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.
#
#Default:
# shutdown_lifetime 30 seconds
Likely you have a process that is accessing a site through the cache. The cache, trying to be a good neighbor, is waiting for that access to finish before shutting down. After the shutdown_lifetime, it just closes the connection. Either make sure nothing is accessing the internet through Squid, or lower this value.
Then again, I could be completely off base.
Chris
Received on Wed Nov 23 2005 - 14:40:18 MST
This archive was generated by hypermail pre-2.1.9 : Thu Dec 01 2005 - 12:00:10 MST