[experimental-ims] c656cdc Fix conditional backend request in streaming mode
Geoff Simmons
geoff at varnish-cache.org
Mon Jan 16 17:40:52 CET 2012
commit c656cdcc45534f2722810ced60d0025193cc93db
Author: Jocelyn De La Rosa <jocelyn.delarosa at smartjog.com>
Date: Tue Jan 10 15:56:48 2012 +0100
Fix conditional backend request in streaming mode
Signed-off-by: Geoff Simmons <geoff at uplex.de>
diff --git a/bin/varnishd/cache/cache_center.c b/bin/varnishd/cache/cache_center.c
index 1883943..04a2444 100644
--- a/bin/varnishd/cache/cache_center.c
+++ b/bin/varnishd/cache/cache_center.c
@@ -896,8 +896,10 @@ cnt_fetchbody(struct sess *sp, struct worker *wrk, struct req *req)
*/
if (sp->stale_obj) {
http_Check304(sp);
- if (wrk->busyobj->beresp->status == 304)
+ if (wrk->busyobj->beresp->status == 304) {
assert(req->obj->http->status == 200);
+ wrk->busyobj->do_stream = 0;
+ }
EXP_Clr(&sp->stale_obj->exp);
EXP_Rearm(sp->stale_obj);
HSH_Deref(sp->wrk, NULL, &sp->stale_obj);
More information about the varnish-commit
mailing list