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
0e3ae639
Commit
0e3ae639
authored
Mar 10, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Add --backend-http2-connections-per-worker
parent
3e14261e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
src/shrpx.cc
src/shrpx.cc
+10
-0
src/shrpx_config.cc
src/shrpx_config.cc
+7
-0
src/shrpx_config.h
src/shrpx_config.h
+1
-0
No files found.
src/shrpx.cc
View file @
0e3ae639
...
...
@@ -1030,6 +1030,10 @@ Performance:
Set maximum number of simultaneous connections frontend
accepts. Setting 0 means unlimited.
Default: )"
<<
get_config
()
->
worker_frontend_connections
<<
R"(
--backend-http2-connections-per-worker=<N>
Set maximum number of HTTP/2 connections per worker.
The default value is 0, which means the number of
backend addresses specified by -b option.
--backend-http1-connections-per-host=<N>
Set maximum number of backend concurrent HTTP/1
connections per host. This option is meaningful when -s
...
...
@@ -1493,6 +1497,7 @@ int main(int argc, char **argv) {
{
"no-host-rewrite"
,
no_argument
,
&
flag
,
73
},
{
"no-server-push"
,
no_argument
,
&
flag
,
74
},
{
"backend-http2-connection-check"
,
no_argument
,
&
flag
,
75
},
{
"backend-http2-connections-per-worker"
,
required_argument
,
&
flag
,
76
},
{
nullptr
,
0
,
nullptr
,
0
}};
int
option_index
=
0
;
...
...
@@ -1834,6 +1839,11 @@ int main(int argc, char **argv) {
// --backend-http2-connection-check
cmdcfgs
.
emplace_back
(
SHRPX_OPT_BACKEND_HTTP2_CONNECTION_CHECK
,
"yes"
);
break
;
case
76
:
// --backend-http2-connections-per-worker
cmdcfgs
.
emplace_back
(
SHRPX_OPT_BACKEND_HTTP2_CONNECTIONS_PER_WORKER
,
optarg
);
break
;
default:
break
;
}
...
...
src/shrpx_config.cc
View file @
0e3ae639
...
...
@@ -148,6 +148,8 @@ const char SHRPX_OPT_BACKEND_RESPONSE_BUFFER[] = "backend-response-buffer";
const
char
SHRPX_OPT_NO_SERVER_PUSH
[]
=
"no-server-push"
;
const
char
SHRPX_OPT_BACKEND_HTTP2_CONNECTION_CHECK
[]
=
"backend-http2-connection-check"
;
const
char
SHRPX_OPT_BACKEND_HTTP2_CONNECTIONS_PER_WORKER
[]
=
"backend-http2-connections-per-worker"
;
namespace
{
Config
*
config
=
nullptr
;
...
...
@@ -1201,6 +1203,11 @@ int parse_config(const char *opt, const char *optarg) {
return
0
;
}
if
(
util
::
strieq
(
opt
,
SHRPX_OPT_BACKEND_HTTP2_CONNECTIONS_PER_WORKER
))
{
return
parse_uint
(
&
mod_config
()
->
http2_downstream_connections_per_worker
,
opt
,
optarg
);
}
if
(
util
::
strieq
(
opt
,
"conf"
))
{
LOG
(
WARN
)
<<
"conf: ignored"
;
...
...
src/shrpx_config.h
View file @
0e3ae639
...
...
@@ -137,6 +137,7 @@ extern const char SHRPX_OPT_BACKEND_REQUEST_BUFFER[];
extern
const
char
SHRPX_OPT_BACKEND_RESPONSE_BUFFER
[];
extern
const
char
SHRPX_OPT_NO_SERVER_PUSH
[];
extern
const
char
SHRPX_OPT_BACKEND_HTTP2_CONNECTION_CHECK
[];
extern
const
char
SHRPX_OPT_BACKEND_HTTP2_CONNECTIONS_PER_WORKER
[];
union
sockaddr_union
{
sockaddr_storage
storage
;
...
...
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