server session CHANGE wait longer for key exchange
It tends to take longer and every call logs the current
state, avoid flooding the log this way.
diff --git a/src/session_server_ssh.c b/src/session_server_ssh.c
index ad54711..74401b8 100644
--- a/src/session_server_ssh.c
+++ b/src/session_server_ssh.c
@@ -1117,8 +1117,9 @@
ssh_set_blocking(session->ti.libssh.session, 0);
while ((ret = ssh_handle_key_exchange(session->ti.libssh.session)) == SSH_AGAIN) {
- usleep(NC_TIMEOUT_STEP);
- elapsed_usec += NC_TIMEOUT_STEP;
+ /* this tends to take longer */
+ usleep(NC_TIMEOUT_STEP * 20);
+ elapsed_usec += NC_TIMEOUT_STEP * 20;
if ((timeout > -1) && (elapsed_usec / 1000 >= timeout)) {
break;
}