Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
9c750713
Commit
9c750713
authored
Oct 30, 2014
by
Poul-Henning Kamp
Committed by
Martin Blix Grydeland
Nov 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a debug facility to force a WRW_Flush after the headers.
Conflicts: bin/varnishd/cache/cache_http1_deliver.c
parent
abe626af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
cache_http1_deliver.c
bin/varnishd/cache/cache_http1_deliver.c
+6
-0
debug_bits.h
include/tbl/debug_bits.h
+1
-0
No files found.
bin/varnishd/cache/cache_http1_deliver.c
View file @
9c750713
...
@@ -329,6 +329,9 @@ V1D_Deliver(struct req *req, struct busyobj *bo)
...
@@ -329,6 +329,9 @@ V1D_Deliver(struct req *req, struct busyobj *bo)
if
(
!
(
req
->
res_mode
&
RES_ESI_CHILD
))
if
(
!
(
req
->
res_mode
&
RES_ESI_CHILD
))
req
->
resp_hdrbytes
+=
req
->
resp_hdrbytes
+=
HTTP1_Write
(
req
->
wrk
,
req
->
resp
,
HTTP1_Resp
);
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
)
if
(
req
->
res_mode
&
RES_CHUNKED
)
WRW_Chunked
(
req
->
wrk
);
WRW_Chunked
(
req
->
wrk
);
...
@@ -440,6 +443,9 @@ V1D_Deliver_Synth(struct req *req)
...
@@ -440,6 +443,9 @@ V1D_Deliver_Synth(struct req *req)
if
(
!
(
req
->
res_mode
&
RES_ESI_CHILD
))
if
(
!
(
req
->
res_mode
&
RES_ESI_CHILD
))
req
->
resp_hdrbytes
+=
req
->
resp_hdrbytes
+=
HTTP1_Write
(
req
->
wrk
,
req
->
resp
,
HTTP1_Resp
);
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
)
if
(
req
->
res_mode
&
RES_CHUNKED
)
WRW_Chunked
(
req
->
wrk
);
WRW_Chunked
(
req
->
wrk
);
...
...
include/tbl/debug_bits.h
View file @
9c750713
...
@@ -38,3 +38,4 @@ DEBUG_BIT(HASHEDGE, hashedge, "Edge cases in Hash")
...
@@ -38,3 +38,4 @@ DEBUG_BIT(HASHEDGE, hashedge, "Edge cases in Hash")
DEBUG_BIT
(
VCLREL
,
vclrel
,
"Rapid VCL release"
)
DEBUG_BIT
(
VCLREL
,
vclrel
,
"Rapid VCL release"
)
DEBUG_BIT
(
LURKER
,
lurker
,
"VSL Ban lurker"
)
DEBUG_BIT
(
LURKER
,
lurker
,
"VSL Ban lurker"
)
DEBUG_BIT
(
ESI_CHOP
,
esi_chop
,
"Chop ESI fetch to bits"
)
DEBUG_BIT
(
ESI_CHOP
,
esi_chop
,
"Chop ESI fetch to bits"
)
DEBUG_BIT
(
FLUSH_HEAD
,
flush_head
,
"Flush after http1 head"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment