From 8e9a42b7c0e67f9af0d7cf59a8a66bb243bb7c51 Mon Sep 17 00:00:00 2001 From: Thomas Wolf Date: Wed, 29 Dec 2021 20:11:04 +0100 Subject: sshd: support the ConnectTimeout ssh config Parse the value from the ssh config and if set use it when connecting. Change-Id: I85b44c9468a5027602375706612c46ea7a99b2bd Signed-off-by: Thomas Wolf --- .../src/org/eclipse/jgit/transport/SshConstants.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'org.eclipse.jgit/src/org/eclipse/jgit') diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/SshConstants.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/SshConstants.java index d6bdbd800d..48cacf0964 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/SshConstants.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/SshConstants.java @@ -70,6 +70,15 @@ public final class SshConstants { /** Key in an ssh config file. */ public static final String CONNECTION_ATTEMPTS = "ConnectionAttempts"; + /** + * An OpenSSH time value for the connection timeout. In OpenSSH, this + * includes everything until the end of the initial key exchange; in JGit it + * covers only the underlying TCP connect. + * + * @since 6.1 + */ + public static final String CONNECT_TIMEOUT = "ConnectTimeout"; + /** Key in an ssh config file. */ public static final String CONTROL_PATH = "ControlPath"; -- cgit v1.2.3