]> err.no Git - varnish/commitdiff
Respect VCL choice of handling
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 6 Apr 2006 08:18:11 +0000 (08:18 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 6 Apr 2006 08:18:11 +0000 (08:18 +0000)
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

index 04a4b8d4b110d6fe125fe7364fbd247582c1f0a6..b8ccf7c72e9cd2eab200818dabf0cb6dda378893 100644 (file)
@@ -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));