diff options
author | Ingela Anderton Andin <[email protected]> | 2016-03-24 17:08:44 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2016-05-03 13:46:50 +0200 |
commit | 67de1ba82d1af910dc6ab6d41a1f22dbfb39f658 (patch) | |
tree | d5e60bb5228d1784b22a33b4980959cba0281368 /lib/ssl/src/dtls_connection.erl | |
parent | 94e70f82df417d9e673a13d101007d7ae8932df7 (diff) | |
download | otp-67de1ba82d1af910dc6ab6d41a1f22dbfb39f658.tar.gz otp-67de1ba82d1af910dc6ab6d41a1f22dbfb39f658.tar.bz2 otp-67de1ba82d1af910dc6ab6d41a1f22dbfb39f658.zip |
ssl: Use gen_statem instead of gen_fsm
Also reduce timing issues in tests
Diffstat (limited to 'lib/ssl/src/dtls_connection.erl')
-rw-r--r-- | lib/ssl/src/dtls_connection.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ssl/src/dtls_connection.erl b/lib/ssl/src/dtls_connection.erl index e490de7eeb..2c9fe5cfb5 100644 --- a/lib/ssl/src/dtls_connection.erl +++ b/lib/ssl/src/dtls_connection.erl @@ -21,7 +21,7 @@ %% Internal application API --behaviour(gen_fsm). +-behaviour(gen_statem). -include("dtls_connection.hrl"). -include("dtls_handshake.hrl"). @@ -514,7 +514,6 @@ initial_state(Role, Host, Port, Socket, {SSLOptions, SocketOptions}, User, renegotiation = {false, first}, allow_renegotiate = SSLOptions#ssl_options.client_renegotiation, start_or_recv_from = undefined, - send_queue = queue:new(), protocol_cb = ?MODULE }. read_application_data(_,State) -> |