Skip to content
Snippets Groups Projects
Commit 43634f58 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Lower timeouts when closing SSH session.

Reduces the time after a forced hangup that you need to wait before
returning to the main menu.
parent ab98baa9
No related branches found
No related tags found
No related merge requests found
Pipeline #5822 passed
......@@ -1022,6 +1022,8 @@ ssh_close(void)
{
char garbage[1024];
cryptSetAttribute(ssh_session, CRYPT_OPTION_NET_READTIMEOUT, 1);
cryptSetAttribute(ssh_session, CRYPT_OPTION_NET_WRITETIMEOUT, 1);
conn_api.terminate = 1;
close_sftp_channel(sftp_channel);
close_ssh_channel();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment