aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-06-22 12:06:37 +0200
committerHans Nilsson <[email protected]>2016-06-29 12:34:42 +0200
commit4fb1bf9584cd2a9efb5dd0b527961087a3871387 (patch)
treeee84f44e06c458185f47c0c476b28be274cc700a /lib/ssh
parent3b7a6ffddc819bf305353a593904cea9e932e7dc (diff)
downloadotp-4fb1bf9584cd2a9efb5dd0b527961087a3871387.tar.gz
otp-4fb1bf9584cd2a9efb5dd0b527961087a3871387.tar.bz2
otp-4fb1bf9584cd2a9efb5dd0b527961087a3871387.zip
ssh: remove 'sync sleeps'
Diffstat (limited to 'lib/ssh')
-rw-r--r--lib/ssh/src/ssh_connection_handler.erl3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/ssh/src/ssh_connection_handler.erl b/lib/ssh/src/ssh_connection_handler.erl
index e952a333ff..a62af9e1ce 100644
--- a/lib/ssh/src/ssh_connection_handler.erl
+++ b/lib/ssh/src/ssh_connection_handler.erl
@@ -1315,12 +1315,10 @@ terminate(shutdown, StateName, State0) ->
State = send_msg(#ssh_msg_disconnect{code = ?SSH_DISCONNECT_BY_APPLICATION,
description = "Application shutdown"},
State0),
-timer:sleep(400), %% FIXME!!! gen_tcp:shutdown instead
finalize_termination(StateName, State);
%% terminate({shutdown,Msg}, StateName, State0) when is_record(Msg,ssh_msg_disconnect)->
%% State = send_msg(Msg, State0),
-%% timer:sleep(400), %% FIXME!!! gen_tcp:shutdown instead
%% finalize_termination(StateName, Msg, State);
terminate({shutdown,_R}, StateName, State) ->
@@ -1635,7 +1633,6 @@ new_channel_id(#data{connection_state = #connection{channel_id_seed = Id} =
disconnect(Msg=#ssh_msg_disconnect{description=Description}, _StateName, State0) ->
State = send_msg(Msg, State0),
disconnect_fun(Description, State),
-timer:sleep(400),
{stop, {shutdown,Description}, State}.
%%%----------------------------------------------------------------