aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_connection_manager.erl
diff options
context:
space:
mode:
authorNiclas Eklund <[email protected]>2010-12-20 17:05:39 +0100
committerNiclas Eklund <[email protected]>2010-12-20 17:05:39 +0100
commit4e894385dba69227fde6a5b402b169ec4621a356 (patch)
treec7f28fc7c5245c4cab6d351f7569af5255473067 /lib/ssh/src/ssh_connection_manager.erl
parent8a1ec022a6395ce6c228c6776dc12bff4f3967cf (diff)
downloadotp-4e894385dba69227fde6a5b402b169ec4621a356.tar.gz
otp-4e894385dba69227fde6a5b402b169ec4621a356.tar.bz2
otp-4e894385dba69227fde6a5b402b169ec4621a356.zip
OTP-8987
In some cases SSH returned {error, normal} when a channel was terminated unexpectedly. This has now been changed to {error, channel_closed}. OTP-8986 It is now possible to use SSH to sign and verify binary data.
Diffstat (limited to 'lib/ssh/src/ssh_connection_manager.erl')
-rw-r--r--lib/ssh/src/ssh_connection_manager.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ssh/src/ssh_connection_manager.erl b/lib/ssh/src/ssh_connection_manager.erl
index 6bf89224cf..9bfd5270da 100644
--- a/lib/ssh/src/ssh_connection_manager.erl
+++ b/lib/ssh/src/ssh_connection_manager.erl
@@ -147,7 +147,7 @@ close(ConnectionManager, ChannelId) ->
try call(ConnectionManager, {close, ChannelId}) of
ok ->
ok;
- {error,normal} ->
+ {error, channel_closed} ->
ok
catch
exit:{noproc, _} ->
@@ -158,7 +158,7 @@ stop(ConnectionManager) ->
try call(ConnectionManager, stop) of
ok ->
ok;
- {error,normal} ->
+ {error, channel_closed} ->
ok
catch
exit:{noproc, _} ->
@@ -604,7 +604,7 @@ call(Pid, Msg, Timeout) ->
exit:{timeout, _} ->
{error, timeout};
exit:{normal, _} ->
- {error, normal}
+ {error, channel_closed}
end.
cast(Pid, Msg) ->