r453 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Wed Jul 12 13:48:07 CEST 2006
Author: phk
Date: 2006-07-12 13:48:07 +0200 (Wed, 12 Jul 2006)
New Revision: 453
Modified:
trunk/varnish-cache/bin/varnishd/cache_center.c
trunk/varnish-cache/bin/varnishd/cache_pass.c
Log:
Make Pass work again
Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c 2006-07-12 11:45:53 UTC (rev 452)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c 2006-07-12 11:48:07 UTC (rev 453)
@@ -339,9 +339,15 @@
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 */
+}
+
/*--------------------------------------------------------------------
* We get here when we have the backends headers, send them to client
* and pass any body the backend may have on as well.
Modified: trunk/varnish-cache/bin/varnishd/cache_pass.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pass.c 2006-07-12 11:45:53 UTC (rev 452)
+++ trunk/varnish-cache/bin/varnishd/cache_pass.c 2006-07-12 11:48:07 UTC (rev 453)
@@ -182,8 +182,7 @@
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);
More information about the varnish-commit
mailing list