Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
c30d252f
Commit
c30d252f
authored
Sep 06, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Show warning if certain feature is not compiled in
parent
6d46249b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
src/shrpx.cc
src/shrpx.cc
+0
-4
src/shrpx_config.cc
src/shrpx_config.cc
+15
-2
No files found.
src/shrpx.cc
View file @
c30d252f
...
...
@@ -1946,11 +1946,7 @@ int main(int argc, char **argv) {
cmdcfgs
.
emplace_back
(
SHRPX_OPT_INSECURE
,
"yes"
);
break
;
case
'n'
:
#ifdef NOTHREADS
LOG
(
WARN
)
<<
"Threading disabled at build time, no threads created."
;
#else
cmdcfgs
.
emplace_back
(
SHRPX_OPT_WORKERS
,
optarg
);
#endif // NOTHREADS
break
;
case
'o'
:
cmdcfgs
.
emplace_back
(
SHRPX_OPT_FRONTEND_FRAME_DEBUG
,
"yes"
);
...
...
src/shrpx_config.cc
View file @
c30d252f
...
...
@@ -1373,7 +1373,12 @@ int parse_config(const char *opt, const char *optarg,
return
0
;
}
case
SHRPX_OPTID_WORKERS
:
#ifdef NOTHREADS
LOG
(
WARN
)
<<
"Threading disabled at build time, no threads created."
;
return
0
;
#else // !NOTHREADS
return
parse_uint
(
&
mod_config
()
->
num_worker
,
opt
,
optarg
);
#endif // !NOTHREADS
case
SHRPX_OPTID_HTTP2_MAX_CONCURRENT_STREAMS
:
return
parse_uint
(
&
mod_config
()
->
http2_max_concurrent_streams
,
opt
,
optarg
);
case
SHRPX_OPTID_LOG_LEVEL
:
...
...
@@ -1949,12 +1954,20 @@ int parse_config(const char *opt, const char *optarg,
return
parse_uint
(
&
mod_config
()
->
tls_ticket_key_memcached_max_fail
,
opt
,
optarg
);
case
SHRPX_OPTID_REQUEST_PHASE_FILE
:
#ifdef HAVE_MRUBY
mod_config
()
->
request_phase_file
=
strcopy
(
optarg
);
#else // !HAVE_MRUBY
LOG
(
WARN
)
<<
opt
<<
": ignored because mruby support is disabled at build time."
;
#endif // !HAVE_MRUBY
return
0
;
case
SHRPX_OPTID_RESPONSE_PHASE_FILE
:
#ifdef HAVE_MRUBY
mod_config
()
->
response_phase_file
=
strcopy
(
optarg
);
#else // !HAVE_MRUBY
LOG
(
WARN
)
<<
opt
<<
": ignored because mruby support is disabled at build time."
;
#endif // !HAVE_MRUBY
return
0
;
case
SHRPX_OPTID_CONF
:
LOG
(
WARN
)
<<
"conf: ignored"
;
...
...
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