summaryrefslogtreecommitdiff
path: root/lib/ssh/src/ssh_connection_handler.erl
diff options
context:
space:
mode:
authorAnupama Singh <anupamasingh31@gmail.com>2022-11-17 15:07:31 +0100
committerAnupama Singh <anupamasingh31@gmail.com>2022-11-17 15:11:46 +0100
commit6c0df956c7e20c9deebcc94df99debafd38bd2cf (patch)
treebc616693527dcbd76d8e1238bcee1569eb2d2a6f /lib/ssh/src/ssh_connection_handler.erl
parent38ad8e28421c745c06ef9bd55f6e6204cd1f15ef (diff)
downloaderlang-6c0df956c7e20c9deebcc94df99debafd38bd2cf.tar.gz
graceful shutdown of ssh_conection_handler when connection is closed by peer
Diffstat (limited to 'lib/ssh/src/ssh_connection_handler.erl')
-rw-r--r--lib/ssh/src/ssh_connection_handler.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_connection_handler.erl b/lib/ssh/src/ssh_connection_handler.erl
index 849f4b46d2..10eb5e88b4 100644
--- a/lib/ssh/src/ssh_connection_handler.erl
+++ b/lib/ssh/src/ssh_connection_handler.erl
@@ -421,7 +421,7 @@ init([Role, Socket, Opts]) when Role==client ; Role==server ->
end;
{error,Error} ->
- {stop, {error,Error}}
+ {stop, {shutdown,Error}}
end.
%%%----------------------------------------------------------------