aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2012-04-16 11:56:57 +0200
committerIngela Anderton Andin <[email protected]>2012-06-08 16:52:05 +0200
commit35ffd19df295f5ff73f9968b65dc8ad957c943e5 (patch)
tree4ea04a2f9e01af4df52c141dae79f2294abb5432
parentc7cdcb85f8116dda47c2960df1c8a3f3caf56d64 (diff)
downloadotp-35ffd19df295f5ff73f9968b65dc8ad957c943e5.tar.gz
otp-35ffd19df295f5ff73f9968b65dc8ad957c943e5.tar.bz2
otp-35ffd19df295f5ff73f9968b65dc8ad957c943e5.zip
ssl: Use ordered_set in cache
So we can use partial bound keys for matching
-rw-r--r--lib/ssl/src/ssl_session_cache.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/ssl_session_cache.erl b/lib/ssl/src/ssl_session_cache.erl
index f9bbf905e1..5c6ee3c54c 100644
--- a/lib/ssl/src/ssl_session_cache.erl
+++ b/lib/ssl/src/ssl_session_cache.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2008-2011. All Rights Reserved.
+%% Copyright Ericsson AB 2008-2012. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -32,7 +32,7 @@
%% Description: Return table reference. Called by ssl_manager process.
%%--------------------------------------------------------------------
init(_) ->
- ets:new(cache_name(), [set, protected]).
+ ets:new(cache_name(), [ordered_set, protected]).
%%--------------------------------------------------------------------
%% Description: Handles cache table at termination of ssl manager.