]> err.no Git - varnish/commit
The cachers CLI thread is responsible for garbage collecting dicarded
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 9 Jul 2008 08:56:46 +0000 (08:56 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 9 Jul 2008 08:56:46 +0000 (08:56 +0000)
commiteda82a61ef8b7aafc3d98c9fad8dc016eccee943
tree11e55e5db7ebc1cd3c66c50f0cdf45ce56988ff9
parent2f738f948f11f47e54993a0f70bd7ff59f73ed62
The cachers CLI thread is responsible for garbage collecting dicarded
VCL programs, but in practice it didn't happen because we fired the
GC function VCL_Idle() after 5 seconds of silence on the CLI port and
the manager pings every three (by default).

Instead change the name of VCL_Idle() to VCL_Poll() and call it
before every CLI command, so that any query command will get an
up to date status.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2908 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache.h
varnish-cache/bin/varnishd/cache_cli.c
varnish-cache/bin/varnishd/cache_vcl.c