From 3a501eb96bcbd177bbc3aed09cfe921f80c52482 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Mon, 29 Jan 2018 22:42:55 +0000
Subject: [PATCH] Set SSH timeout to 1 second.

Previous versions of Cryptlib defaulted to a zero second timeout... this
is no longer the case as it appears to be 15 seconds now.  Setting it to
zero makes it not work at all.
---
 src/syncterm/ssh.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/syncterm/ssh.c b/src/syncterm/ssh.c
index 0fa6f3d804..b8de9815e8 100644
--- a/src/syncterm/ssh.c
+++ b/src/syncterm/ssh.c
@@ -264,6 +264,8 @@ int ssh_connect(struct bbslist *bbs)
 	/* Pass socket to cryptlib */
 	status=cl.SetAttribute(ssh_session, CRYPT_SESSINFO_SSH_HEIGHT, rows);
 
+	cl.SetAttribute(ssh_session, CRYPT_OPTION_NET_READTIMEOUT, 1);
+
 	/* Activate the session */
 	uifc.pop(NULL);
 	uifc.pop("Activating Session");
-- 
GitLab