aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit
diff options
context:
space:
mode:
authorThomas Wolf <thomas.wolf@paranor.ch>2021-12-29 20:11:04 +0100
committerThomas Wolf <thomas.wolf@paranor.ch>2022-01-30 17:13:47 +0100
commit8e9a42b7c0e67f9af0d7cf59a8a66bb243bb7c51 (patch)
tree73ad78401b4623c1379dbaf4810233bb590a5920 /org.eclipse.jgit/src/org/eclipse/jgit
parentf41929708e79d7b36e0a653ae3d7464d4f20b606 (diff)
downloadjgit-8e9a42b7c0e67f9af0d7cf59a8a66bb243bb7c51.tar.gz
jgit-8e9a42b7c0e67f9af0d7cf59a8a66bb243bb7c51.zip
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 <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/SshConstants.java9
1 files changed, 9 insertions, 0 deletions
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";