aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter_config.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2013-06-10 13:08:08 +0200
committerAnders Svensson <[email protected]>2013-06-10 15:15:24 +0200
commit78b3dc6eea23a728a20947ccc425a7860ef39d97 (patch)
treee9fea9b0097d7458634c9e2236271201b63dde00 /lib/diameter/src/base/diameter_config.erl
parentf7295b48627fb84bceef61044b6f2d0cbee10c2b (diff)
downloadotp-78b3dc6eea23a728a20947ccc425a7860ef39d97.tar.gz
otp-78b3dc6eea23a728a20947ccc425a7860ef39d97.tar.bz2
otp-78b3dc6eea23a728a20947ccc425a7860ef39d97.zip
Make spawn options for request processes configurable
That is, for the process that's spawned for each incoming Diameter request message.
Diffstat (limited to 'lib/diameter/src/base/diameter_config.erl')
-rw-r--r--lib/diameter/src/base/diameter_config.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter_config.erl b/lib/diameter/src/base/diameter_config.erl
index 2a145c874b..fc5c284bf2 100644
--- a/lib/diameter/src/base/diameter_config.erl
+++ b/lib/diameter/src/base/diameter_config.erl
@@ -549,6 +549,9 @@ opt({watchdog_timer, Tmo}) ->
opt({watchdog_config, L}) ->
is_list(L) andalso lists:all(fun wdopt/1, L);
+opt({spawn_opt, Opts}) ->
+ is_list(Opts);
+
%% Options that we can't validate.
opt({K, _})
when K == transport_config;
@@ -632,7 +635,8 @@ make_config(SvcName, Opts) ->
{false, use_shared_peers},
{false, monitor},
{?NOMASK, sequence},
- {nodes, restrict_connections}]),
+ {nodes, restrict_connections},
+ {[], spawn_opt}]),
#service{name = SvcName,
rec = #diameter_service{applications = Apps,
@@ -647,6 +651,9 @@ make_opts(Opts, Defs) ->
[{K, opt(K,V)} || {K,V} <- Known].
+opt(spawn_opt, L) ->
+ is_list(L);
+
opt(K, false = B)
when K /= sequence ->
B;