diff options
author | Anders Svensson <[email protected]> | 2017-08-24 13:21:28 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2017-08-25 13:08:41 +0200 |
commit | b0582c6963f6dc203f05ed810c9446cf3fa0f0ae (patch) | |
tree | 2354fec110db3abec115cbdace974c08e499e741 /lib/diameter/src/base/diameter_config.erl | |
parent | 5f3becaddef9b18c81a1ec8bd7bf955384c1a225 (diff) | |
download | otp-b0582c6963f6dc203f05ed810c9446cf3fa0f0ae.tar.gz otp-b0582c6963f6dc203f05ed810c9446cf3fa0f0ae.tar.bz2 otp-b0582c6963f6dc203f05ed810c9446cf3fa0f0ae.zip |
Let strict_mbit and incoming_maxlen be configured per transport
Since these can make sense per peer. The remaining service-only options
either belong there or make little sense being configured per transport.
Diffstat (limited to 'lib/diameter/src/base/diameter_config.erl')
-rw-r--r-- | lib/diameter/src/base/diameter_config.erl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/diameter/src/base/diameter_config.erl b/lib/diameter/src/base/diameter_config.erl index a4496f9725..4721be1ca0 100644 --- a/lib/diameter/src/base/diameter_config.erl +++ b/lib/diameter/src/base/diameter_config.erl @@ -575,13 +575,11 @@ setopt(K, T) -> %% opt/2 -opt(service, {incoming_maxlen, N}) - when 0 =< N, N < 1 bsl 24 -> - true; +opt(_, {incoming_maxlen, N}) -> + is_integer(N) andalso 0 =< N andalso N < 1 bsl 24; opt(service, {K, B}) - when K == strict_mbit; - K == string_decode; + when K == string_decode; K == traffic_counters -> is_boolean(B); @@ -680,7 +678,9 @@ opt(_, {K, Tmo}) opt(_, {capx_strictness, B}) -> is_boolean(B) andalso {value, {strict_capx, B}}; -opt(_, {strict_capx, B}) -> +opt(_, {K, B}) + when K == strict_capx; + K == strict_mbit -> is_boolean(B); opt(_, {length_errors, T}) -> |