Skip to content
Snippets Groups Projects
Commit d8aae569 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 a8cdf5e5
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -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.
Finish editing this message first!
Please register or to comment