summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2019-12-25 00:43:12 +0300
committerMichael Klishin <michael@clojurewerkz.org>2019-12-25 00:43:12 +0300
commit7af37e5bb8bc4a517a6ab26a6038bef6cfa946e7 (patch)
treef0fbb708affb279bc08693bede4b260b3b6c06ad /priv
parent5e9e7a2aaffec1ddab93847798967100097493d1 (diff)
downloadrabbitmq-server-git-7af37e5bb8bc4a517a6ab26a6038bef6cfa946e7.tar.gz
Cuttlefish schema: introduce socket_writer.gc_threshold
References #2182, rabbitmq/rabbitmq-common#343.
Diffstat (limited to 'priv')
-rw-r--r--priv/schema/rabbit.schema25
1 files changed, 22 insertions, 3 deletions
diff --git a/priv/schema/rabbit.schema b/priv/schema/rabbit.schema
index 2054a48ccf..a8d720a4a9 100644
--- a/priv/schema/rabbit.schema
+++ b/priv/schema/rabbit.schema
@@ -59,7 +59,7 @@ fun(Conf) ->
end}.
%% Number of Erlang processes that will accept connections for the TCP
-%% and SSL listeners.
+%% and TLS listeners.
%%
%% {num_tcp_acceptors, 10},
%% {num_ssl_acceptors, 1},
@@ -73,13 +73,32 @@ end}.
]}.
+{mapping, "socket_writer.gc_threshold", "rabbit.writer_gc_threshold", [
+ {datatype, [{atom, off}, integer]}
+]}.
+
+{translation, "rabbit.writer_gc_threshold",
+ fun(Conf) ->
+ case cuttlefish:conf_get("socket_writer.gc_threshold", Conf, undefined) of
+ %% missing from the config
+ undefined -> cuttlefish:unset();
+ %% explicitly disabled
+ off -> undefined;
+ Int when is_integer(Int) andalso Int > 0 ->
+ Int;
+ _ ->
+ cuttlefish:invalid("should be a non-negative integer")
+ end
+ end
+}.
+
%% Maximum time for 0-9-1 handshake (after socket connection
-%% and SSL handshake), in milliseconds.
+%% and TLS handshake), in milliseconds.
%%
%% {handshake_timeout, 10000},
{mapping, "handshake_timeout", "rabbit.handshake_timeout", [
- {datatype, integer}
+ {datatype, [{atom, infinity}, integer]}
]}.
%% Set to 'true' to perform reverse DNS lookups when accepting a