diff --git a/examples/shrpx.cc b/examples/shrpx.cc index 096030b..2e8d47f 100644 --- a/examples/shrpx.cc +++ b/examples/shrpx.cc @@ -253,7 +253,7 @@ void fill_default_config() mod_config()->downstream_host = "localhost"; mod_config()->downstream_port = 80; - mod_config()->num_worker = 4; + mod_config()->num_worker = 1; mod_config()->spdy_max_concurrent_streams = SPDYLAY_INITIAL_MAX_CONCURRENT_STREAMS; @@ -319,12 +319,17 @@ void print_help(std::ostream& out) << get_config()->host << "," << get_config()->port << "'\n" << " -n, --workers=\n" << " Set the number of worker threads.\n" + << " Default: " + << get_config()->num_worker << "\n" << " -c, --spdy-max-concurrent-streams=\n" << " Set the maximum number of the concurrent\n" << " streams in one SPDY session.\n" + << " Default: " + << get_config()->spdy_max_concurrent_streams << "\n" << " -L, --log-level=\n" << " Set the severity level of log output.\n" - << " INFO, WARNING, ERROR and FATAL\n" + << " INFO, WARNING, ERROR and FATAL.\n" + << " Default: WARNING\n" << " -D, --daemon Run in a background. If -D is used, the\n" << " current working directory is changed to '/'.\n" << " -h, --help Print this help.\n" diff --git a/examples/shrpx_spdy_upstream.cc b/examples/shrpx_spdy_upstream.cc index 5d6e865..735d629 100644 --- a/examples/shrpx_spdy_upstream.cc +++ b/examples/shrpx_spdy_upstream.cc @@ -223,7 +223,7 @@ SpdyUpstream::SpdyUpstream(uint16_t version, ClientHandler *handler) // TODO Maybe call from outside? spdylay_settings_entry entry; entry.settings_id = SPDYLAY_SETTINGS_MAX_CONCURRENT_STREAMS; - entry.value = SPDYLAY_INITIAL_MAX_CONCURRENT_STREAMS; + entry.value = get_config()->spdy_max_concurrent_streams; entry.flags = SPDYLAY_ID_FLAG_SETTINGS_NONE; rv = spdylay_submit_settings(session_, SPDYLAY_FLAG_SETTINGS_NONE, &entry, 1);