diff options
author | Ingela Anderton Andin <ingela@erlang.org> | 2017-02-23 10:21:33 +0100 |
---|---|---|
committer | Ingela Anderton Andin <ingela@erlang.org> | 2017-03-06 10:34:15 +0100 |
commit | 2117e29474712445725b30b8b5a8a53b5f99b6a0 (patch) | |
tree | 95f1812a8e0676b34d9e4b687a28a40503563957 /lib/ssl/src | |
parent | ae29f5f18443d758a984aeca36e3917463beb173 (diff) | |
download | otp-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.
Diffstat (limited to 'lib/ssl/src')
-rw-r--r-- | lib/ssl/src/dtls_connection.erl | 14 |
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) -> |