From d0f36537fbc194f63fca6e6ee35b81b8fb163c7e Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Fri, 13 Apr 2018 11:10:20 +0300 Subject: [PATCH] Clear fast_tls cache on configuration reload --- rebar.config | 2 +- src/ejabberd_pkix.erl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rebar.config b/rebar.config index 6e81578bf..823bc3824 100644 --- a/rebar.config +++ b/rebar.config @@ -22,7 +22,7 @@ {tag, {if_version_above, "17", "3.4.2", "3.2.1"}}}}, {p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.11"}}}, {cache_tab, ".*", {git, "https://github.com/processone/cache_tab", {tag, "1.0.13"}}}, - {fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.0.21"}}}, + {fast_tls, ".*", {git, "https://github.com/processone/fast_tls", "a166f0e"}}, {stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.11"}}}, {fast_xml, ".*", {git, "https://github.com/processone/fast_xml", {tag, "1.1.29"}}}, {xmpp, ".*", {git, "https://github.com/processone/xmpp", "bb88d59"}}, diff --git a/src/ejabberd_pkix.erl b/src/ejabberd_pkix.erl index 596c5e492..229492bea 100644 --- a/src/ejabberd_pkix.erl +++ b/src/ejabberd_pkix.erl @@ -172,6 +172,7 @@ config_reloaded() -> true -> init_cache(); false -> delete_cache() end, + fast_tls:clear_cache(), gen_server:call(?MODULE, config_reloaded, 60000). opt_type(ca_path) ->