Disable closing idle Ssh connections again
By switching to Apache SSHD 0.6.0 in
812a823569339ec6b839a5c599b9bac7be73d8c6, we started to close idle Ssh
connections after 10 minutes of inactivity (See r1163164 of Apache
SSHD). This closing of idle connections caused problems for scripts
that listened for streamed events. Even though the scripts
reconnected, and gerrit accepted the connection attempts, sometimes no
events got passed through the new connections and the task queue
started to fill up.
Until we can isolate the root cause of the problem, we revert to the
old behaviour of not closing idle connections, and thereby mitigate
the problem.
Additionally, we allow to configure the idle timeout.
Change-Id: Ia4f226771b082057ecb45e6c2a9a8d809ec1389d
diff --git a/Documentation/config-gerrit.txt b/Documentation/config-gerrit.txt
index 4899042..7798ebc 100644
--- a/Documentation/config-gerrit.txt
+++ b/Documentation/config-gerrit.txt
@@ -2368,6 +2368,20 @@
+
By default, 2 minutes.
+[[sshd.idleTimeout]]sshd.idleTimeout::
++
+Time in seconds after which the server automatically terminates idle
+connections (or 0 to disable closing of idle connections). Values
+should use common unit suffixes to express their setting:
++
+* s, sec, second, seconds
+* m, min, minute, minutes
+* h, hr, hour, hours
+* d, day, days
+
++
+By default, 0.
+
[[sshd.maxConnectionsPerUser]]sshd.maxConnectionsPerUser::
+
Maximum number of concurrent SSH sessions that a user account