nghttpx: Rename backend_session_cache_per_worker as downstream_session_cache_per_worker
This commit is contained in:
parent
e7de5e9f6c
commit
15fa38c72f
|
@ -1071,7 +1071,7 @@ void fill_default_config() {
|
|||
}
|
||||
|
||||
tlsconf.session_timeout = std::chrono::hours(12);
|
||||
tlsconf.backend_session_cache_per_worker = 10000;
|
||||
tlsconf.downstream_session_cache_per_worker = 10000;
|
||||
|
||||
auto &httpconf = mod_config()->http;
|
||||
httpconf.server_name = "nghttpx nghttp2/" NGHTTP2_VERSION;
|
||||
|
@ -1591,8 +1591,8 @@ SSL/TLS:
|
|||
--backend-tls-session-cache-per-worker=<N>
|
||||
Set the maximum number of backend TLS session cache
|
||||
stored per worker.
|
||||
Default: )" << get_config()->tls.backend_session_cache_per_worker
|
||||
<< R"(
|
||||
Default: )"
|
||||
<< get_config()->tls.downstream_session_cache_per_worker << R"(
|
||||
|
||||
HTTP/2 and SPDY:
|
||||
-c, --http2-max-concurrent-streams=<N>
|
||||
|
|
|
@ -2227,8 +2227,8 @@ int parse_config(const char *opt, const char *optarg,
|
|||
|
||||
return 0;
|
||||
case SHRPX_OPTID_BACKEND_TLS_SESSION_CACHE_PER_WORKER:
|
||||
return parse_uint(&mod_config()->tls.backend_session_cache_per_worker, opt,
|
||||
optarg);
|
||||
return parse_uint(&mod_config()->tls.downstream_session_cache_per_worker,
|
||||
opt, optarg);
|
||||
case SHRPX_OPTID_CONF:
|
||||
LOG(WARN) << "conf: ignored";
|
||||
|
||||
|
|
|
@ -393,7 +393,7 @@ struct TLSConfig {
|
|||
std::vector<std::string> npn_list;
|
||||
// list of supported SSL/TLS protocol strings.
|
||||
std::vector<std::string> tls_proto_list;
|
||||
size_t backend_session_cache_per_worker;
|
||||
size_t downstream_session_cache_per_worker;
|
||||
// Bit mask to disable SSL/TLS protocol versions. This will be
|
||||
// passed to SSL_CTX_set_options().
|
||||
long int tls_proto_mask;
|
||||
|
|
|
@ -311,7 +311,7 @@ void Worker::cache_downstream_tls_session(const DownstreamAddr *addr,
|
|||
SSL_SESSION *session) {
|
||||
auto &tlsconf = get_config()->tls;
|
||||
|
||||
auto max = tlsconf.backend_session_cache_per_worker;
|
||||
auto max = tlsconf.downstream_session_cache_per_worker;
|
||||
if (max == 0) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue