aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-01-19 14:16:31 +0100
committerAnders Svensson <[email protected]>2015-01-19 14:24:38 +0100
commit2b1ec3dc6d936f6e885dfe23ea68ed54c98bb950 (patch)
tree93f9bec209b278ddea2c88f6846dbcda536b6e18 /lib
parentf21490c2fbaa1b501d2f6d7b766c88b23acc955a (diff)
downloadotp-2b1ec3dc6d936f6e885dfe23ea68ed54c98bb950.tar.gz
otp-2b1ec3dc6d936f6e885dfe23ea68ed54c98bb950.tar.bz2
otp-2b1ec3dc6d936f6e885dfe23ea68ed54c98bb950.zip
Increase service shutdown timeout
Shutting down the service causes DPR to be sent on all open transports under the service. These in turn have a timeout for the reception of DPA, but the timeout is bounded by the supervisor's in practice. Both timeouts were 1 second. Increase the supervisor timeout to 5 seconds. Note that the service supervisor is furthest to the right in the supervision tree in diameter_sup. Thus is significant, so that the transport-related processes aren't shutdown first.
Diffstat (limited to 'lib')
-rw-r--r--lib/diameter/src/base/diameter_service_sup.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diameter/src/base/diameter_service_sup.erl b/lib/diameter/src/base/diameter_service_sup.erl
index 153fff902f..e3177f0083 100644
--- a/lib/diameter/src/base/diameter_service_sup.erl
+++ b/lib/diameter/src/base/diameter_service_sup.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2010-2011. All Rights Reserved.
+%% Copyright Ericsson AB 2010-2015. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -58,7 +58,7 @@ init([]) ->
ChildSpec = {Mod,
{Mod, start_link, []},
temporary,
- 1000,
+ 5000,
worker,
[Mod]},
{ok, {Flags, [ChildSpec]}}.