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
57931908
Commit
57931908
authored
Oct 19, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
It is not kosher to have #ifdefs inside macros.
parent
006760c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mgt_main.c
bin/varnishd/mgt/mgt_main.c
+4
-0
params.h
include/tbl/params.h
+0
-4
No files found.
bin/varnishd/mgt/mgt_main.c
View file @
57931908
...
@@ -395,6 +395,10 @@ init_params(struct cli *cli)
...
@@ -395,6 +395,10 @@ init_params(struct cli *cli)
MCF_SetDefault
(
"gzip_buffer"
,
"4k"
);
MCF_SetDefault
(
"gzip_buffer"
,
"4k"
);
}
}
#if !defined(HAVE_ACCEPT_FILTERS) || defined(__linux)
MCF_SetDefault
(
"accept_filter"
,
"off"
);
#endif
low
=
sysconf
(
_SC_THREAD_STACK_MIN
);
low
=
sysconf
(
_SC_THREAD_STACK_MIN
);
bprintf
(
stackmin
,
"%jd"
,
(
intmax_t
)
low
);
bprintf
(
stackmin
,
"%jd"
,
(
intmax_t
)
low
);
MCF_SetMinimum
(
"thread_pool_stack"
,
stackmin
);
MCF_SetMinimum
(
"thread_pool_stack"
,
stackmin
);
...
...
include/tbl/params.h
View file @
57931908
...
@@ -35,11 +35,7 @@ PARAM(
...
@@ -35,11 +35,7 @@ PARAM(
/* typ */
bool
,
/* typ */
bool
,
/* min */
NULL
,
/* min */
NULL
,
/* max */
NULL
,
/* max */
NULL
,
#if defined(HAVE_ACCEPT_FILTERS) || defined(__linux)
/* default */
"on"
,
/* default */
"on"
,
#else
/* default */
"off"
,
#endif
/* HAVE_ACCEPT_FILTERS || __linux */
/* units */
"bool"
,
/* units */
"bool"
,
/* flags */
MUST_RESTART
,
/* flags */
MUST_RESTART
,
/* s-text */
/* s-text */
...
...
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