diff --git a/doc/admin-guide/files/records.config.en.rst b/doc/admin-guide/files/records.config.en.rst index 7e1f1844bc2..cb9c9064408 100644 --- a/doc/admin-guide/files/records.config.en.rst +++ b/doc/admin-guide/files/records.config.en.rst @@ -3420,7 +3420,7 @@ SSL Termination a single segment after ~1 second of inactivity and the record size ramping mechanism is repeated again. -.. ts:cv:: CONFIG proxy.config.ssl.origin_session_cache INT 0 +.. ts:cv:: CONFIG proxy.config.ssl.origin_session_cache INT 1 This configuration enables the SSL session cache for the origin server when set to ``1``. diff --git a/iocore/net/SSLConfig.cc b/iocore/net/SSLConfig.cc index befa4bb1755..2af43bcdfb4 100644 --- a/iocore/net/SSLConfig.cc +++ b/iocore/net/SSLConfig.cc @@ -61,7 +61,7 @@ int SSLConfigParams::ssl_ocsp_cache_timeout = 3600; int SSLConfigParams::ssl_ocsp_request_timeout = 10; int SSLConfigParams::ssl_ocsp_update_period = 60; int SSLConfigParams::ssl_handshake_timeout_in = 0; -int SSLConfigParams::origin_session_cache = 0; +int SSLConfigParams::origin_session_cache = 1; size_t SSLConfigParams::origin_session_cache_size = 10240; size_t SSLConfigParams::session_cache_number_buckets = 1024; bool SSLConfigParams::session_cache_skip_on_lock_contention = false; diff --git a/mgmt/RecordsConfig.cc b/mgmt/RecordsConfig.cc index 9dff9c2c992..9b6cabc75d9 100644 --- a/mgmt/RecordsConfig.cc +++ b/mgmt/RecordsConfig.cc @@ -1128,7 +1128,7 @@ static const RecordElement RecordsConfig[] = , {RECT_CONFIG, "proxy.config.ssl.client.sni_policy", RECD_STRING, "host", RECU_RESTART_TS, RR_NULL, RECC_NULL, nullptr, RECA_NULL} , - {RECT_CONFIG, "proxy.config.ssl.origin_session_cache", RECD_INT, "0", RECU_RESTART_TS, RR_NULL, RECC_NULL, nullptr, RECA_NULL} + {RECT_CONFIG, "proxy.config.ssl.origin_session_cache", RECD_INT, "1", RECU_RESTART_TS, RR_NULL, RECC_NULL, nullptr, RECA_NULL} , {RECT_CONFIG, "proxy.config.ssl.origin_session_cache.size", RECD_INT, "10240", RECU_RESTART_TS, RR_NULL, RECC_NULL, nullptr, RECA_NULL} ,