diff options
author | Ingela Anderton Andin <[email protected]> | 2016-12-06 18:20:14 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-01-19 10:24:58 +0100 |
commit | c6472824546dc8e6914139c2443b926d3f0945cc (patch) | |
tree | 1bb73fadd7fb0245dca92f11d87edfe2fb2b68bc /lib/ssl/src/ssl_config.erl | |
parent | a44947369f44cb334ca45dbecca2e3f878af8229 (diff) | |
download | otp-c6472824546dc8e6914139c2443b926d3f0945cc.tar.gz otp-c6472824546dc8e6914139c2443b926d3f0945cc.tar.bz2 otp-c6472824546dc8e6914139c2443b926d3f0945cc.zip |
ssl: Move PEM cache to a dedicated process
The PEM cache handling has proven to be too disruptive of the manager process.
Diffstat (limited to 'lib/ssl/src/ssl_config.erl')
-rw-r--r-- | lib/ssl/src/ssl_config.erl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ssl/src/ssl_config.erl b/lib/ssl/src/ssl_config.erl index 0652d029c3..54f83928ee 100644 --- a/lib/ssl/src/ssl_config.erl +++ b/lib/ssl/src/ssl_config.erl @@ -41,9 +41,11 @@ init(SslOpts, Role) -> {ok, CertDbRef, CertDbHandle, FileRefHandle, CacheHandle, CRLDbHandle, OwnCert, PrivateKey, DHParams}. init_manager_name(false) -> - put(ssl_manager, ssl_manager:manager_name(normal)); + put(ssl_manager, ssl_manager:name(normal)), + put(ssl_cache, ssl_pem_cache:name(normal)); init_manager_name(true) -> - put(ssl_manager, ssl_manager:manager_name(dist)). + put(ssl_manager, ssl_manager:name(dist)), + put(ssl_cache, ssl_pem_cache:name(dist)). init_certificates(#ssl_options{cacerts = CaCerts, cacertfile = CACertFile, @@ -135,6 +137,8 @@ file_error(File, Throw) -> case Throw of {Opt,{badmatch, {error, {badmatch, Error}}}} -> throw({options, {Opt, binary_to_list(File), Error}}); + {Opt, {badmatch, Error}} -> + throw({options, {Opt, binary_to_list(File), Error}}); _ -> throw(Throw) end. |