From 8e80b89c7aafc70fbcb538c9c6b464912cb11d83 Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Thu, 31 May 2012 11:39:46 +0200 Subject: ssl: File handling optimization Avoid cach validation with file:file_info/2 as this i too expensive and causes a bottleneck in the file server. Instead we expose a new API function ssl:clear_pem_cache/0 to deal with the problem. As we think it will be of occasional use and the normal case is that the cache will be valid we think it is the right thing to do. Convert file paths to binary representation in the ssl API module to avoid uncessarry calls in file later on. Also add sanity checks for openssl versions in testsuite due to new openssl bugs. --- lib/ssl/test/ssl_basic_SUITE.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ssl/test/ssl_basic_SUITE.erl') diff --git a/lib/ssl/test/ssl_basic_SUITE.erl b/lib/ssl/test/ssl_basic_SUITE.erl index 590ecf33ca..0618628df2 100644 --- a/lib/ssl/test/ssl_basic_SUITE.erl +++ b/lib/ssl/test/ssl_basic_SUITE.erl @@ -3649,6 +3649,8 @@ no_reuses_session_server_restart_new_cert_file(Config) when is_list(Config) -> ssl_test_lib:close(Server), ssl_test_lib:close(Client0), + ssl:clear_pem_cache(), + NewServerOpts = new_config(PrivDir, DsaServerOpts), Server1 = -- cgit v1.2.3 From f88ec275329908b017ae731f8e4ca11d862a9243 Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Mon, 11 Jun 2012 15:59:32 +0200 Subject: ssl: Test case fixes --- lib/ssl/test/ssl_basic_SUITE.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/ssl/test/ssl_basic_SUITE.erl') diff --git a/lib/ssl/test/ssl_basic_SUITE.erl b/lib/ssl/test/ssl_basic_SUITE.erl index 0618628df2..2eaab02665 100644 --- a/lib/ssl/test/ssl_basic_SUITE.erl +++ b/lib/ssl/test/ssl_basic_SUITE.erl @@ -50,6 +50,7 @@ %%-------------------------------------------------------------------- init_per_suite(Config0) -> Dog = ssl_test_lib:timetrap(?LONG_TIMEOUT *2), + catch crypto:stop(), try crypto:start() of ok -> application:start(public_key), -- cgit v1.2.3