diff options
author | Péter Dimitrov <[email protected]> | 2019-03-29 16:48:36 +0100 |
---|---|---|
committer | Péter Dimitrov <[email protected]> | 2019-03-29 16:48:36 +0100 |
commit | c738a4bf1f92cd5caa40d728f7b465663640e806 (patch) | |
tree | 0bf40abc2d79536e1511ec1f17b3994fcea9b4f8 | |
parent | 4358bd7d4f8891dba24aa9ac7148b05505d285a4 (diff) | |
download | otp-c738a4bf1f92cd5caa40d728f7b465663640e806.tar.gz otp-c738a4bf1f92cd5caa40d728f7b465663640e806.tar.bz2 otp-c738a4bf1f92cd5caa40d728f7b465663640e806.zip |
ssl: Fix retransmission timeout
Set the upper limit of the retransmission timeout to 60 seconds
instead of 60 milliseconds.
Change-Id: I17168a015f352d2526935ea77a8aea686944ebcd
-rw-r--r-- | lib/ssl/src/dtls_connection.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/dtls_connection.erl b/lib/ssl/src/dtls_connection.erl index 30b2ab7c4f..1772df11ff 100644 --- a/lib/ssl/src/dtls_connection.erl +++ b/lib/ssl/src/dtls_connection.erl @@ -1075,10 +1075,10 @@ start_retransmision_timer(Timeout, #state{protocol_specific = PS} = State) -> {State#state{protocol_specific = PS#{flight_state => {retransmit, new_timeout(Timeout)}}}, [{state_timeout, Timeout, flight_retransmission_timeout}]}. -new_timeout(N) when N =< 30 -> +new_timeout(N) when N =< 30000 -> N * 2; new_timeout(_) -> - 60. + 60000. send_handshake_flight(#state{static_env = #static_env{socket = Socket, transport_cb = Transport}, |