File 4476-ssh-start_alive-for-no_auth_needed-case.patch of Package erlang
From e9946a4ca5863493eec47799c74ab91811a72726 Mon Sep 17 00:00:00 2001
From: Jakub Witczak <kuba@erlang.org>
Date: Wed, 17 Sep 2025 17:09:34 +0200
Subject: [PATCH 06/20] ssh: start_alive for no_auth_needed case
---
lib/ssh/src/ssh_fsm_userauth_server.erl | 9 ++++-----
lib/ssh/test/ssh_options_SUITE.erl | 1 +
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/ssh/src/ssh_fsm_userauth_server.erl b/lib/ssh/src/ssh_fsm_userauth_server.erl
index a5a1b123a3..1c31a61627 100644
--- a/lib/ssh/src/ssh_fsm_userauth_server.erl
+++ b/lib/ssh/src/ssh_fsm_userauth_server.erl
@@ -77,11 +77,10 @@ handle_event(internal,
{authorized, User, {Reply, Ssh1}} ->
D = connected_state(Reply, Ssh1, User, Method, D1),
{next_state, {connected,server}, D,
- [set_max_initial_idle_timeout(D),
- {change_callback_module,ssh_connection_handler}
- ]
- }
-
+ start_alive(D,
+ [set_max_initial_idle_timeout(D),
+ {change_callback_module,ssh_connection_handler}
+ ])}
end;
{"ssh-connection", "ssh-connection", Method} ->
diff --git a/lib/ssh/test/ssh_options_SUITE.erl b/lib/ssh/test/ssh_options_SUITE.erl
index a5306f72da..010573ea15 100644
--- a/lib/ssh/test/ssh_options_SUITE.erl
+++ b/lib/ssh/test/ssh_options_SUITE.erl
@@ -606,6 +606,7 @@ auth_none(Config) ->
{user_dir, UserDir},
{auth_methods, "password"}, % to make even more sure we don't use public-key-auth
{user_passwords, [{"foo","somepwd"}]}, % Not to be used
+ {alive_params, {1, 2}},
{no_auth_needed, true} % we test this
]),
ClientConnRef1 =
--
2.51.0