From 6f91b75f034cca51bcc702fb220e87bf3f239194 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 6 Apr 2006 08:18:11 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_pool.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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)); -- 2.39.5