Commit 4a1b92bf authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Revert a5ce9982, there is no

net benefit from hair-splitting the number of http headers we
support.   Improve description to bring this point home, in case
I ever get that silly idea again.
parent de16dba2
...@@ -113,7 +113,7 @@ VBO_GetBusyObj(struct worker *wrk, struct req *req) ...@@ -113,7 +113,7 @@ VBO_GetBusyObj(struct worker *wrk, struct req *req)
p = (void*)PRNDUP(p); p = (void*)PRNDUP(p);
assert(p < bo->end); assert(p < bo->end);
nhttp = (uint16_t)cache_param->http_resp_max_hdr; nhttp = (uint16_t)cache_param->http_max_hdr;
sz = HTTP_estimate(nhttp); sz = HTTP_estimate(nhttp);
bo->bereq = HTTP_create(p, nhttp); bo->bereq = HTTP_create(p, nhttp);
......
...@@ -274,7 +274,7 @@ cnt_error(struct worker *wrk, struct req *req) ...@@ -274,7 +274,7 @@ cnt_error(struct worker *wrk, struct req *req)
req->objcore = HSH_NewObjCore(wrk); req->objcore = HSH_NewObjCore(wrk);
req->obj = STV_NewObject(bo, &req->objcore, req->obj = STV_NewObject(bo, &req->objcore,
TRANSIENT_STORAGE, cache_param->http_resp_size, TRANSIENT_STORAGE, cache_param->http_resp_size,
(uint16_t)cache_param->http_req_max_hdr); (uint16_t)cache_param->http_max_hdr);
bo->stats = NULL; bo->stats = NULL;
if (req->obj == NULL) { if (req->obj == NULL) {
req->doclose = SC_OVERLOAD; req->doclose = SC_OVERLOAD;
......
...@@ -362,7 +362,7 @@ SES_GetReq(struct worker *wrk, struct sess *sp) ...@@ -362,7 +362,7 @@ SES_GetReq(struct worker *wrk, struct sess *sp)
p = (void*)PRNDUP(p); p = (void*)PRNDUP(p);
assert(p < e); assert(p < e);
nhttp = (uint16_t)cache_param->http_req_max_hdr; nhttp = (uint16_t)cache_param->http_max_hdr;
hl = HTTP_estimate(nhttp); hl = HTTP_estimate(nhttp);
req->http = HTTP_create(p, nhttp); req->http = HTTP_create(p, nhttp);
......
...@@ -98,10 +98,9 @@ struct params { ...@@ -98,10 +98,9 @@ struct params {
unsigned shm_workspace; unsigned shm_workspace;
unsigned http_req_size; unsigned http_req_size;
unsigned http_req_hdr_len; unsigned http_req_hdr_len;
unsigned http_req_max_hdr;
unsigned http_resp_size; unsigned http_resp_size;
unsigned http_resp_hdr_len; unsigned http_resp_hdr_len;
unsigned http_resp_max_hdr; unsigned http_max_hdr;
unsigned shm_reclen; unsigned shm_reclen;
......
...@@ -86,7 +86,6 @@ const struct parspec mgt_parspec[] = { ...@@ -86,7 +86,6 @@ const struct parspec mgt_parspec[] = {
" just wastes the space.\n", " just wastes the space.\n",
DELAYED_EFFECT, DELAYED_EFFECT,
"2048", "bytes" }, "2048", "bytes" },
{ "http_req_hdr_len", { "http_req_hdr_len",
tweak_bytes_u, &mgt_param.http_req_hdr_len, tweak_bytes_u, &mgt_param.http_req_hdr_len,
40, UINT_MAX, 40, UINT_MAX,
...@@ -105,16 +104,6 @@ const struct parspec mgt_parspec[] = { ...@@ -105,16 +104,6 @@ const struct parspec mgt_parspec[] = {
"how much of that the request is allowed to take up.", "how much of that the request is allowed to take up.",
0, 0,
"32k", "bytes" }, "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", { "http_resp_hdr_len",
tweak_bytes_u, &mgt_param.http_resp_hdr_len, tweak_bytes_u, &mgt_param.http_resp_hdr_len,
40, UINT_MAX, 40, UINT_MAX,
...@@ -133,16 +122,14 @@ const struct parspec mgt_parspec[] = { ...@@ -133,16 +122,14 @@ const struct parspec mgt_parspec[] = {
"limits how much of that the request is allowed to take up.", "limits how much of that the request is allowed to take up.",
0, 0,
"32k", "bytes" }, "32k", "bytes" },
{ "http_resp_max_hdr", tweak_uint, &mgt_param.http_resp_max_hdr, { "http_max_hdr", tweak_uint, &mgt_param.http_max_hdr, 32, 65535,
32, 65535, "Maximum number of HTTP header lines we allow in "
"Maximum number of HTTP headers we will deal with in " "{req|resp|bereq|beresp}.http "
"backend response. " "(obj.http is autosized to the exact number of headers).\n"
"Note that the first line occupies five header fields.\n" "Cheap, ~20 bytes, in terms of workspace memory.\n"
"This parameter does not influence storage consumption, " "Note that the first line occupies five header lines.\n",
"objects allocate exact space for the headers they store.\n",
0, 0,
"64", "header lines" }, "64", "header lines" },
{ "vsl_buffer", { "vsl_buffer",
tweak_bytes_u, &mgt_param.vsl_buffer, 1024, UINT_MAX, tweak_bytes_u, &mgt_param.vsl_buffer, 1024, UINT_MAX,
"Bytes of (req-/backend-)workspace dedicated to buffering" "Bytes of (req-/backend-)workspace dedicated to buffering"
......
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