[master] abefe72 Add a debug facility to force a V1L_Flush after the headers.
Poul-Henning Kamp
phk at FreeBSD.org
Thu Oct 30 16:50:21 CET 2014
commit abefe72ece143e7bb5a6575e135c1de1d363c727
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Oct 30 15:30:12 2014 +0000
Add a debug facility to force a V1L_Flush after the headers.
diff --git a/bin/varnishd/http1/cache_http1_deliver.c b/bin/varnishd/http1/cache_http1_deliver.c
index 84cd582..bc24ff3 100644
--- a/bin/varnishd/http1/cache_http1_deliver.c
+++ b/bin/varnishd/http1/cache_http1_deliver.c
@@ -150,6 +150,8 @@ V1D_Deliver(struct req *req, struct busyobj *bo)
V1L_Reserve(req->wrk, req->ws, &req->sp->fd, req->vsl, req->t_prev);
req->acct.resp_hdrbytes += HTTP1_Write(req->wrk, req->resp, HTTP1_Resp);
+ if (DO_DEBUG(DBG_FLUSH_HEAD))
+ (void)V1L_Flush(req->wrk);
ois = OIS_DONE;
if (req->wantbody) {
diff --git a/include/tbl/debug_bits.h b/include/tbl/debug_bits.h
index 59bc64e..81d5e38 100644
--- a/include/tbl/debug_bits.h
+++ b/include/tbl/debug_bits.h
@@ -38,3 +38,4 @@ DEBUG_BIT(HASHEDGE, hashedge, "Edge cases in Hash")
DEBUG_BIT(VCLREL, vclrel, "Rapid VCL release")
DEBUG_BIT(LURKER, lurker, "VSL Ban lurker")
DEBUG_BIT(ESI_CHOP, esi_chop, "Chop ESI fetch to bits")
+DEBUG_BIT(FLUSH_HEAD, flush_head, "Flush after http1 head")
More information about the varnish-commit
mailing list