Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
10a2ab5f
Commit
10a2ab5f
authored
Feb 17, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename max_esi_includes param to max_esi_depth and enforce it again.
parent
b07804bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
cache_esi_deliver.c
bin/varnishd/cache_esi_deliver.c
+4
-1
heritage.h
bin/varnishd/heritage.h
+1
-1
mgt_param.c
bin/varnishd/mgt_param.c
+3
-3
No files found.
bin/varnishd/cache_esi_deliver.c
View file @
10a2ab5f
...
...
@@ -55,6 +55,10 @@ ved_include(struct sess *sp, const char *src, const char *host)
w
=
sp
->
wrk
;
if
(
sp
->
esi_level
>=
params
->
max_esi_depth
)
return
;
sp
->
esi_level
++
;
if
(
WRW_Flush
(
w
))
{
vca_close_session
(
sp
,
"remote closed"
);
return
;
...
...
@@ -62,7 +66,6 @@ ved_include(struct sess *sp, const char *src, const char *host)
AZ
(
WRW_FlushRelease
(
w
));
sp
->
esi_level
++
;
obj
=
sp
->
obj
;
sp
->
obj
=
NULL
;
res_mode
=
sp
->
wrk
->
res_mode
;
...
...
bin/varnishd/heritage.h
View file @
10a2ab5f
...
...
@@ -136,7 +136,7 @@ struct params {
unsigned
max_restarts
;
/* Maximum esi:include depth allowed */
unsigned
max_esi_
includes
;
unsigned
max_esi_
depth
;
/* ESI parser hints */
unsigned
esi_syntax
;
...
...
bin/varnishd/mgt_param.c
View file @
10a2ab5f
...
...
@@ -647,11 +647,11 @@ static const struct parspec input_parspec[] = {
"Use 0x notation and do the bitor in your head :-)
\n
"
,
0
,
"0"
,
"bitmap"
},
{
"max_esi_
includes
"
,
tweak_uint
,
&
master
.
max_esi_
includes
,
0
,
UINT_MAX
,
{
"max_esi_
depth
"
,
tweak_uint
,
&
master
.
max_esi_
depth
,
0
,
UINT_MAX
,
"Maximum depth of esi:include processing.
\n
"
,
0
,
"5"
,
"
include
s"
},
"5"
,
"
level
s"
},
{
"cache_vbcs"
,
tweak_bool
,
&
master
.
cache_vbcs
,
0
,
0
,
"Cache vbc's or rely on malloc, that's the question."
,
EXPERIMENTAL
,
...
...
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