diff options
author | Anders Svensson <[email protected]> | 2014-12-01 14:53:31 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2014-12-01 14:53:31 +0100 |
commit | 2ed565e2f3ff7359f59528899a562381501e3ce9 (patch) | |
tree | 028ed99cf9aae96300d1e3eb05f9babda9474767 /lib/diameter/src/base/diameter_peer_fsm.erl | |
parent | db121b268b5aaa2e4a3d5088b1e9500d5e4a94e3 (diff) | |
parent | 2b89e8bd5a8258c4259ed53cc0331d4fbe1f1aa3 (diff) | |
download | otp-2ed565e2f3ff7359f59528899a562381501e3ce9.tar.gz otp-2ed565e2f3ff7359f59528899a562381501e3ce9.tar.bz2 otp-2ed565e2f3ff7359f59528899a562381501e3ce9.zip |
Merge branch 'anders/diameter/connect_timer/OTP-12281' into maint
* anders/diameter/connect_timer/OTP-12281:
Tweak reason in closed event
Fix ignored connect timer
Check {connect,watchdog}_timer distinction in event testcases
Rename reconnect_timer to connect_timer in examples and suites
Diffstat (limited to 'lib/diameter/src/base/diameter_peer_fsm.erl')
-rw-r--r-- | lib/diameter/src/base/diameter_peer_fsm.erl | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/diameter/src/base/diameter_peer_fsm.erl b/lib/diameter/src/base/diameter_peer_fsm.erl index 86fc43cdc5..ee6e7dd89e 100644 --- a/lib/diameter/src/base/diameter_peer_fsm.erl +++ b/lib/diameter/src/base/diameter_peer_fsm.erl @@ -225,8 +225,8 @@ start_transport(Addrs0, T) -> erlang:monitor(process, TPid), q_next(TPid, Addrs0, Tmo, Data), {TPid, Addrs}; - No -> - exit({shutdown, No}) + {error, No} -> + exit({shutdown, {no_connection, No}}) end. svc(#diameter_service{capabilities = LCaps0} = Svc, Addrs) -> @@ -368,11 +368,8 @@ transition({diameter, {TPid, connected}}, %% message. This may be followed by an incoming message which arrived %% before the transport was killed and this can't be distinguished %% from one from the transport that's been started to replace it. -transition({diameter, {_, connected}}, _) -> - {stop, connection_timeout}; -transition({diameter, {_, connected, _}}, _) -> - {stop, connection_timeout}; -transition({diameter, {_, connected, _, _}}, _) -> +transition({diameter, T}, _) + when tuple_size(T) < 5, connected == element(2,T) -> {stop, connection_timeout}; %% Connection has timed out: start an alternate. |