diff options
| author | Daniil Fedotov <hairyhum@gmail.com> | 2018-12-27 19:26:37 +0400 |
|---|---|---|
| committer | Daniil Fedotov <hairyhum@gmail.com> | 2018-12-27 19:26:37 +0400 |
| commit | 03fc22ddd9d0b47fb735f36c4c5421a7baeb2ad9 (patch) | |
| tree | 36c1b3c141f262ca6eb47bf6e90a3efb2590024c /priv | |
| parent | 794ef8de24ec261d1f3217f0a1ccfae98c8c6873 (diff) | |
| download | rabbitmq-server-git-03fc22ddd9d0b47fb735f36c4c5421a7baeb2ad9.tar.gz | |
Introduce a configurable limit to message size.
Add `max_message_size` configuration to configure limit
in bytes.
If message is bigger - channel exception will be thrown.
Default limit is 128MB.
There is still a hard limit of 521MB.
[#161983593]
Diffstat (limited to 'priv')
| -rw-r--r-- | priv/schema/rabbit.schema | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/priv/schema/rabbit.schema b/priv/schema/rabbit.schema index 5c6078a413..5c62daaf8a 100644 --- a/priv/schema/rabbit.schema +++ b/priv/schema/rabbit.schema @@ -554,6 +554,9 @@ end}. }. +{mapping, "msx_message_size", "rabbit.max_message_size", + [{datatype, integer}, {validators, ["less_then_512MB"]}]}. + %% Customising Socket Options. %% %% See (http://www.erlang.org/doc/man/inet.html#setopts-2) for @@ -1361,6 +1364,11 @@ fun(Size) when is_integer(Size) -> Size > 0 andalso Size < 2147483648 end}. +{validator, "less_then_512MB", "Max message size should be less than 512MB and gre than 0", +fun(Size) when is_integer(Size) -> + Size > 0 andalso Size < 536870912 +end}. + {validator, "less_than_1", "Flooat is not beetween 0 and 1", fun(Float) when is_float(Float) -> Float > 0 andalso Float < 1 |
