Commit 9c750713 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Martin Blix Grydeland

Add a debug facility to force a WRW_Flush after the headers.

Conflicts:
	bin/varnishd/cache/cache_http1_deliver.c
parent abe626af
......@@ -329,6 +329,9 @@ V1D_Deliver(struct req *req, struct busyobj *bo)
if (!(req->res_mode & RES_ESI_CHILD))
req->resp_hdrbytes +=
HTTP1_Write(req->wrk, req->resp, HTTP1_Resp);
if (DO_DEBUG(DBG_FLUSH_HEAD)) {
(void)WRW_Flush(req->wrk);
}
if (req->res_mode & RES_CHUNKED)
WRW_Chunked(req->wrk);
......@@ -440,6 +443,9 @@ V1D_Deliver_Synth(struct req *req)
if (!(req->res_mode & RES_ESI_CHILD))
req->resp_hdrbytes +=
HTTP1_Write(req->wrk, req->resp, HTTP1_Resp);
if (DO_DEBUG(DBG_FLUSH_HEAD)) {
(void)WRW_Flush(req->wrk);
}
if (req->res_mode & RES_CHUNKED)
WRW_Chunked(req->wrk);
......
......@@ -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")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment