r3386 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Tue Nov 11 20:06:56 CET 2008
Author: phk
Date: 2008-11-11 20:06:55 +0100 (Tue, 11 Nov 2008)
New Revision: 3386
Modified:
trunk/varnish-cache/bin/varnishd/cache_center.c
Log:
Implement restart in vcl_hit.
Fixes #365
Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c 2008-11-11 13:43:01 UTC (rev 3385)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c 2008-11-11 19:06:55 UTC (rev 3386)
@@ -543,7 +543,9 @@
sp->step = STP_ERROR;
return (0);
case VCL_RET_RESTART:
- INCOMPL();
+ sp->director = NULL;
+ sp->restarts++;
+ sp->step = STP_RECV;
return (0);
default:
WRONG("Illegal action in vcl_hit{}");
More information about the varnish-commit
mailing list