From da0c69a09f07bea28773c3f5b3d45366e88286ae Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 12 Jul 2006 11:48:07 +0000 Subject: [PATCH] Make Pass work again git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@453 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_center.c | 8 +++++++- varnish-cache/bin/varnishd/cache_pass.c | 3 +-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index 58cbe08f..e69bc87e 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -339,7 +339,13 @@ DOT } DOT pass -> PASSBODY */ -static void cnt_pass(struct worker *w, struct sess *sp) { (void)w; (void)sp; INCOMPL(); } +static void +cnt_pass(struct worker *w, struct sess *sp) +{ + + PassSession(w, sp); + sp->step = STP_DONE; /* XXX */ +} /*-------------------------------------------------------------------- diff --git a/varnish-cache/bin/varnishd/cache_pass.c b/varnish-cache/bin/varnishd/cache_pass.c index 0b0e19c2..da549086 100644 --- a/varnish-cache/bin/varnishd/cache_pass.c +++ b/varnish-cache/bin/varnishd/cache_pass.c @@ -182,8 +182,7 @@ PassSession(struct worker *w, struct sess *sp) else if (http_HdrIs(hp, "Transfer-Encoding", "chunked")) cls = pass_chunked(sp, vc->fd, hp); else { - INCOMPL(); - cls = 1; + cls = pass_straight(sp, vc->fd, hp, NULL); } vca_flush(sp); -- 2.39.5