Skip to content

Commit d9f2e8c

Browse files
Merge pull request #9761 from rabbitmq/hibernate-ssl
Reduce memory with many SSL connections
2 parents 13d7652 + 512aaa5 commit d9f2e8c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

deps/rabbit_common/src/rabbit_ssl_options.erl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
-spec fix(rabbit_types:infos()) -> rabbit_types:infos().
1919

2020
fix(Config) ->
21-
fix_verify_fun(fix_ssl_protocol_versions(Config)).
21+
fix_verify_fun(
22+
fix_ssl_protocol_versions(
23+
hibernate_after(Config))).
2224

2325
fix_verify_fun(SslOptsConfig) ->
2426
%% Starting with ssl 4.0.1 in Erlang R14B, the verify_fun function
@@ -84,3 +86,12 @@ fix_ssl_protocol_versions(Config) ->
8486
end,
8587
rabbit_misc:pset(versions, Configured -- ?BAD_SSL_PROTOCOL_VERSIONS, Config)
8688
end.
89+
90+
hibernate_after(Config) ->
91+
Key = hibernate_after,
92+
case proplists:is_defined(Key, Config) of
93+
true ->
94+
Config;
95+
false ->
96+
[{Key, 6_000} | Config]
97+
end.

0 commit comments

Comments
 (0)