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
a5ce9982
Commit
a5ce9982
authored
Jan 14, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split the http_max_hdr parameter into http_resp_max_hdr and http_req_max_hdr.
parent
8fa24e20
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
6 deletions
+20
-6
cache_busyobj.c
bin/varnishd/cache/cache_busyobj.c
+1
-1
cache_req_fsm.c
bin/varnishd/cache/cache_req_fsm.c
+1
-1
cache_session.c
bin/varnishd/cache/cache_session.c
+1
-1
params.h
bin/varnishd/common/params.h
+2
-1
mgt_param_tbl.c
bin/varnishd/mgt/mgt_param_tbl.c
+15
-2
No files found.
bin/varnishd/cache/cache_busyobj.c
View file @
a5ce9982
...
...
@@ -113,7 +113,7 @@ VBO_GetBusyObj(struct worker *wrk, struct req *req)
p
=
(
void
*
)
PRNDUP
(
p
);
assert
(
p
<
bo
->
end
);
nhttp
=
(
uint16_t
)
cache_param
->
http_max_hdr
;
nhttp
=
(
uint16_t
)
cache_param
->
http_
resp_
max_hdr
;
sz
=
HTTP_estimate
(
nhttp
);
bo
->
bereq
=
HTTP_create
(
p
,
nhttp
);
...
...
bin/varnishd/cache/cache_req_fsm.c
View file @
a5ce9982
...
...
@@ -274,7 +274,7 @@ cnt_error(struct worker *wrk, struct req *req)
req
->
objcore
=
HSH_NewObjCore
(
wrk
);
req
->
obj
=
STV_NewObject
(
bo
,
&
req
->
objcore
,
TRANSIENT_STORAGE
,
cache_param
->
http_resp_size
,
(
uint16_t
)
cache_param
->
http_max_hdr
);
(
uint16_t
)
cache_param
->
http_
req_
max_hdr
);
bo
->
stats
=
NULL
;
if
(
req
->
obj
==
NULL
)
{
req
->
doclose
=
SC_OVERLOAD
;
...
...
bin/varnishd/cache/cache_session.c
View file @
a5ce9982
...
...
@@ -365,7 +365,7 @@ SES_GetReq(struct worker *wrk, struct sess *sp)
p
=
(
void
*
)
PRNDUP
(
p
);
assert
(
p
<
e
);
nhttp
=
(
uint16_t
)
cache_param
->
http_max_hdr
;
nhttp
=
(
uint16_t
)
cache_param
->
http_
req_
max_hdr
;
hl
=
HTTP_estimate
(
nhttp
);
req
->
http
=
HTTP_create
(
p
,
nhttp
);
...
...
bin/varnishd/common/params.h
View file @
a5ce9982
...
...
@@ -98,9 +98,10 @@ struct params {
unsigned
shm_workspace
;
unsigned
http_req_size
;
unsigned
http_req_hdr_len
;
unsigned
http_req_max_hdr
;
unsigned
http_resp_size
;
unsigned
http_resp_hdr_len
;
unsigned
http_max_hdr
;
unsigned
http_
resp_
max_hdr
;
unsigned
shm_reclen
;
...
...
bin/varnishd/mgt/mgt_param_tbl.c
View file @
a5ce9982
...
...
@@ -86,6 +86,7 @@ const struct parspec mgt_parspec[] = {
" just wastes the space.
\n
"
,
DELAYED_EFFECT
,
"2048"
,
"bytes"
},
{
"http_req_hdr_len"
,
tweak_bytes_u
,
&
mgt_param
.
http_req_hdr_len
,
40
,
UINT_MAX
,
...
...
@@ -104,6 +105,16 @@ const struct parspec mgt_parspec[] = {
"how much of that the request is allowed to take up."
,
0
,
"32k"
,
"bytes"
},
{
"http_req_max_hdr"
,
tweak_uint
,
&
mgt_param
.
http_req_max_hdr
,
32
,
65535
,
"Maximum number of HTTP headers we will deal with in "
"client request. "
"Note that the first line occupies five header fields.
\n
"
"This parameter does not influence storage consumption, "
"objects allocate exact space for the headers they store.
\n
"
,
0
,
"64"
,
"header lines"
},
{
"http_resp_hdr_len"
,
tweak_bytes_u
,
&
mgt_param
.
http_resp_hdr_len
,
40
,
UINT_MAX
,
...
...
@@ -122,14 +133,16 @@ const struct parspec mgt_parspec[] = {
"limits how much of that the request is allowed to take up."
,
0
,
"32k"
,
"bytes"
},
{
"http_max_hdr"
,
tweak_uint
,
&
mgt_param
.
http_max_hdr
,
32
,
65535
,
{
"http_resp_max_hdr"
,
tweak_uint
,
&
mgt_param
.
http_resp_max_hdr
,
32
,
65535
,
"Maximum number of HTTP headers we will deal with in "
"
client request or backend reponses
. "
"
backend response
. "
"Note that the first line occupies five header fields.
\n
"
"This parameter does not influence storage consumption, "
"objects allocate exact space for the headers they store.
\n
"
,
0
,
"64"
,
"header lines"
},
{
"vsl_buffer"
,
tweak_bytes_u
,
&
mgt_param
.
vsl_buffer
,
1024
,
UINT_MAX
,
"Bytes of (req-/backend-)workspace dedicated to buffering"
...
...
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