Skip to content

Commit

Permalink
Fix nodelay SCTP
Browse files Browse the repository at this point in the history
  • Loading branch information
vkatsuba authored and vkatsuba committed May 26, 2021
1 parent 04c6baf commit 1c6a047
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ergw_aaa_diameter.erl
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ transport_config(sctp, Type, Raddr, Port, Opts0) ->
Opts =
[Type, {raddr, Raddr}, {rport, Port}
| maps:to_list(maps:with([reuseaddr, recbuf, sndbuf, nodelay, unordered], Opts0))],
proplists:unfold(proplists:substitute_aliases([{nodelay, sctp_nodelay}], Opts)).
[case I of
{nodelay, V} -> {sctp_nodelay, V};
_ -> I
end || I <- Opts].

svc_set(Key, Value, Opts)
when is_atom(Key), is_list(Value) ->
Expand Down

0 comments on commit 1c6a047

Please sign in to comment.