From: phk Date: Thu, 6 Apr 2006 08:18:11 +0000 (+0000) Subject: Respect VCL choice of handling X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f91b75f034cca51bcc702fb220e87bf3f239194;p=varnish Respect VCL choice of handling Do Id keyword git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@124 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_pool.c b/varnish-cache/bin/varnishd/cache_pool.c index 04a4b8d4..b8ccf7c7 100644 --- a/varnish-cache/bin/varnishd/cache_pool.c +++ b/varnish-cache/bin/varnishd/cache_pool.c @@ -51,11 +51,15 @@ CacheWorker(void *priv) sp->vcl->main_func(sp); printf("Handling: %d\n", sp->handling); - - if (0) { + switch(sp->handling) { + case HND_Unclass: + case HND_Handle: + case HND_Pipe: PipeSession(&w, sp); - } else { + break; + case HND_Pass: PassSession(&w, sp); + break; } AZ(pthread_mutex_lock(&sessmtx));