aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2017-06-18 03:30:29 +0200
committerAnders Svensson <[email protected]>2017-06-21 17:02:06 +0200
commit3118b90c6007d0e239d38f1e161f35ed2337d303 (patch)
treec1b1d4b202bf6248a1037bad542b63d5963a7804 /lib/diameter/src
parent4c1b591e376fafc42225b417160a912b7e957d0c (diff)
downloadotp-3118b90c6007d0e239d38f1e161f35ed2337d303.tar.gz
otp-3118b90c6007d0e239d38f1e161f35ed2337d303.tar.bz2
otp-3118b90c6007d0e239d38f1e161f35ed2337d303.zip
Add missing setopts after deferred diameter_{tcp,sctp} actions
Since the actions can request that a previously passive socket be made active. Missed in commits 636a7199 and 373cd07c.
Diffstat (limited to 'lib/diameter/src')
-rw-r--r--lib/diameter/src/transport/diameter_sctp.erl2
-rw-r--r--lib/diameter/src/transport/diameter_tcp.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/diameter/src/transport/diameter_sctp.erl b/lib/diameter/src/transport/diameter_sctp.erl
index f243f2b7cd..a5abea374c 100644
--- a/lib/diameter/src/transport/diameter_sctp.erl
+++ b/lib/diameter/src/transport/diameter_sctp.erl
@@ -565,7 +565,7 @@ transition(Msg, S)
%% Deferred actions from a message_cb.
transition({actions, Dir, Acts}, S) ->
- actions(Acts, Dir, S);
+ setopts(ok, actions(Acts, Dir, S));
%% Request to close the transport connection.
transition({diameter, {close, Pid}}, #transport{parent = Pid}) ->
diff --git a/lib/diameter/src/transport/diameter_tcp.erl b/lib/diameter/src/transport/diameter_tcp.erl
index a2f393d5d4..aa09a261a3 100644
--- a/lib/diameter/src/transport/diameter_tcp.erl
+++ b/lib/diameter/src/transport/diameter_tcp.erl
@@ -640,7 +640,7 @@ transition(Msg, S)
%% Deferred actions from a message_cb.
transition({actions, Dir, Acts}, S) ->
- actions(Acts, Dir, S);
+ setopts(actions(Acts, Dir, S));
%% Request to close the transport connection.
transition({diameter, {close, Pid}}, #transport{parent = Pid,