Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0976-ssh-do-not-start-acceptor-for-client.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0976-ssh-do-not-start-acceptor-for-client.patch of Package erlang
From ba6b48199d1ca6daac6972098719428a5ffab64e Mon Sep 17 00:00:00 2001 From: Jakub Witczak <kuba@erlang.org> Date: Fri, 9 Feb 2024 13:59:57 +0100 Subject: [PATCH] ssh: do not start acceptor for client - don't start acceptor nor acceptor_sup for ssh client --- lib/ssh/src/ssh_system_sup.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ssh/src/ssh_system_sup.erl b/lib/ssh/src/ssh_system_sup.erl index 728a10974c..043a5598de 100644 --- a/lib/ssh/src/ssh_system_sup.erl +++ b/lib/ssh/src/ssh_system_sup.erl @@ -51,8 +51,10 @@ start_system(Role, Address0, Options) -> case find_system_sup(Role, Address0) of - {ok,{SysPid,Address}} -> + {ok,{SysPid,Address}} when Role =:= server-> restart_acceptor(SysPid, Address, Options); + {ok,{SysPid,_}}-> + {ok,SysPid}; {error,not_found} -> supervisor:start_child(sup(Role), #{id => {?MODULE,Address0}, -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor