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
3b1f918e
Commit
3b1f918e
authored
Apr 11, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce the control variable for streaming.
parent
259d869d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
0 deletions
+13
-0
cache.h
bin/varnishd/cache.h
+1
-0
cache_center.c
bin/varnishd/cache_center.c
+5
-0
cache_vrt_var.c
bin/varnishd/cache_vrt_var.c
+1
-0
generate.py
lib/libvcl/generate.py
+6
-0
No files found.
bin/varnishd/cache.h
View file @
3b1f918e
...
...
@@ -303,6 +303,7 @@ struct worker {
struct
vfp
*
vfp
;
struct
vgz
*
vgz_rx
;
struct
vef_priv
*
vef_priv
;
unsigned
do_stream
;
unsigned
do_esi
;
unsigned
do_gzip
;
unsigned
is_gzip
;
...
...
bin/varnishd/cache_center.c
View file @
3b1f918e
...
...
@@ -664,6 +664,9 @@ cnt_fetchbody(struct sess *sp)
else
if
(
sp
->
wrk
->
is_gzip
)
sp
->
wrk
->
vfp
=
&
vfp_testgzip
;
if
(
sp
->
wrk
->
do_esi
)
sp
->
wrk
->
do_stream
=
0
;
l
=
http_EstimateWS
(
sp
->
wrk
->
beresp
,
pass
?
HTTPH_R_PASS
:
HTTPH_A_INS
,
&
nhttp
);
...
...
@@ -1177,10 +1180,12 @@ cnt_recv(struct sess *sp)
return
(
0
);
}
/* XXX: do_esi ? */
sp
->
wrk
->
is_gzip
=
0
;
sp
->
wrk
->
is_gunzip
=
0
;
sp
->
wrk
->
do_gzip
=
0
;
sp
->
wrk
->
do_gunzip
=
0
;
sp
->
wrk
->
do_stream
=
0
;
if
(
params
->
http_gzip_support
&&
(
recv_handling
!=
VCL_RET_PIPE
)
&&
...
...
bin/varnishd/cache_vrt_var.c
View file @
3b1f918e
...
...
@@ -197,6 +197,7 @@ VRT_r_##dir##_##onm(const struct sess *sp) \
VBERESP
(
beresp
,
unsigned
,
do_esi
,
do_esi
)
VBERESP
(
beresp
,
unsigned
,
do_gzip
,
do_gzip
)
VBERESP
(
beresp
,
unsigned
,
do_gunzip
,
do_gunzip
)
VBERESP
(
beresp
,
unsigned
,
do_stream
,
do_stream
)
/*--------------------------------------------------------------------*/
...
...
lib/libvcl/generate.py
View file @
3b1f918e
...
...
@@ -310,6 +310,12 @@ sp_variables = (
(
'fetch'
,),
'const struct sess *'
),
(
'beresp.do_stream'
,
'BOOL'
,
(
'miss'
,
'pass'
,
'fetch'
,),
(
'miss'
,
'pass'
,
'fetch'
,),
'const struct sess *'
),
(
'beresp.do_gzip'
,
'BOOL'
,
(
'fetch'
,),
...
...
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