aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-02-23 10:21:33 +0100
committerIngela Anderton Andin <[email protected]>2017-03-06 10:34:15 +0100
commit2117e29474712445725b30b8b5a8a53b5f99b6a0 (patch)
tree95f1812a8e0676b34d9e4b687a28a40503563957
parentae29f5f18443d758a984aeca36e3917463beb173 (diff)
downloadotp-2117e29474712445725b30b8b5a8a53b5f99b6a0.tar.gz
otp-2117e29474712445725b30b8b5a8a53b5f99b6a0.tar.bz2
otp-2117e29474712445725b30b8b5a8a53b5f99b6a0.zip
dtls: Erlang distribution over DTLS is not supported
Erlang distribution requiers a reliable transport, which udp is not. Maybe could be interesting later when SCTP support is added to DTLS.
-rw-r--r--lib/ssl/src/dtls_connection.erl14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/ssl/src/dtls_connection.erl b/lib/ssl/src/dtls_connection.erl
index 513b4b5be0..389368870d 100644
--- a/lib/ssl/src/dtls_connection.erl
+++ b/lib/ssl/src/dtls_connection.erl
@@ -77,20 +77,6 @@ start_fsm(Role, Host, Port, Socket, {#ssl_options{erl_dist = false},_, Tracker}
catch
error:{badmatch, {error, _} = Error} ->
Error
- end;
-
-start_fsm(Role, Host, Port, Socket, {#ssl_options{erl_dist = true},_, Tracker} = Opts,
- User, {CbModule, _,_, _} = CbInfo,
- Timeout) ->
- try
- {ok, Pid} = dtls_connection_sup:start_child_dist([Role, Host, Port, Socket,
- Opts, User, CbInfo]),
- {ok, SslSocket} = ssl_connection:socket_control(?MODULE, Socket, Pid, CbModule, Tracker),
- ok = ssl_connection:handshake(SslSocket, Timeout),
- {ok, SslSocket}
- catch
- error:{badmatch, {error, _} = Error} ->
- Error
end.
send_handshake(Handshake, #state{connection_states = ConnectionStates} = States) ->