nghttpx: Show not implemented warning for per wroker rate limit
This commit is contained in:
parent
37c01a0a4d
commit
a55a07940c
12
src/shrpx.cc
12
src/shrpx.cc
|
@ -815,22 +815,26 @@ Performance:
|
|||
--worker-read-rate=<RATE>
|
||||
Set maximum average read rate on frontend
|
||||
connection per worker. Setting 0 to this option
|
||||
means read rate is unlimited.
|
||||
means read rate is unlimited. Not implemented
|
||||
yet.
|
||||
Default: )" << get_config()->worker_read_rate << R"(
|
||||
--worker-read-burst=<SIZE>
|
||||
Set maximum read burst size on frontend
|
||||
connection per worker. Setting 0 to this option
|
||||
means read burst size is unlimited.
|
||||
means read burst size is unlimited. Not
|
||||
implemented yet.
|
||||
Default: )" << get_config()->worker_read_burst << R"(
|
||||
--worker-write-rate=<RATE>
|
||||
Set maximum average write rate on frontend
|
||||
connection per worker. Setting 0 to this option
|
||||
means write rate is unlimited.
|
||||
means write rate is unlimited. Not implemented
|
||||
yet.
|
||||
Default: )" << get_config()->worker_write_rate << R"(
|
||||
--worker-write-burst=<SIZE>
|
||||
Set maximum write burst size on frontend
|
||||
connection per worker. Setting 0 to this option
|
||||
means write burst size is unlimited.
|
||||
means write burst size is unlimited. Not
|
||||
implemented yet.
|
||||
Default: )" << get_config()->worker_write_burst << R"(
|
||||
--worker-frontend-connections=<NUM>
|
||||
Set maximum number of simultaneous connections
|
||||
|
|
|
@ -855,18 +855,22 @@ int parse_config(const char *opt, const char *optarg) {
|
|||
}
|
||||
|
||||
if (util::strieq(opt, SHRPX_OPT_WORKER_READ_RATE)) {
|
||||
LOG(WARN) << opt << ": not implemented yet";
|
||||
return parse_uint(&mod_config()->worker_read_rate, opt, optarg);
|
||||
}
|
||||
|
||||
if (util::strieq(opt, SHRPX_OPT_WORKER_READ_BURST)) {
|
||||
LOG(WARN) << opt << ": not implemented yet";
|
||||
return parse_uint(&mod_config()->worker_read_burst, opt, optarg);
|
||||
}
|
||||
|
||||
if (util::strieq(opt, SHRPX_OPT_WORKER_WRITE_RATE)) {
|
||||
LOG(WARN) << opt << ": not implemented yet";
|
||||
return parse_uint(&mod_config()->worker_write_rate, opt, optarg);
|
||||
}
|
||||
|
||||
if (util::strieq(opt, SHRPX_OPT_WORKER_WRITE_BURST)) {
|
||||
LOG(WARN) << opt << ": not implemented yet";
|
||||
return parse_uint(&mod_config()->worker_write_burst, opt, optarg);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue