Set connection timeout to 120 sec for SSH remote operations

The creation of a missing Git, before starting replication, is a
blocking operation. By setting a timeout on the synchronized
getSession(), we ensure the operation does not get stuck forever,
essentially blocking all future remote git creation operations.

120 seconds is an arbitrary limit, chosen because it should be enough
to not risk being triggered unnecessarily. This is a fail-safe and we
should hopefully very rarely end up needing the timeout.

Change-Id: I01ed29004c6c75a75ede918f61fa1c68d246150b
1 file changed
tree: 0c79f9bfa6efee5adb946aab485fb2bb04acf36f
  1. .gitignore
  2. .settings/
  3. BUCK
  4. LICENSE
  5. src/