How to increase SSH timeout of git server in BPMS/BRMS 6.x

Solution Verified - Updated -

Environment

  • Red Hat JBoss BRMS (BRMS)
    • 6.1.x
  • Red Hat JBoss BPM Suite (BPMS)
    • 6.1.x

Issue

We are receiving the following error when a user is attempting to authenticate to Git over SSH and the amount of time exceeds the timeout value.

User session has timed out idling after 10000 ms

How do we increase the session timeout?

Resolution

Since Red Hat JBoss BPM Suite 6.1 Update 5 you can increase git ssh idle timeout by using the following parameter:

  org.uberfire.nio.git.ssh.idle.timeout

By default it is 10000ms. You can set this property as a system property in your BxMS Server.

Root Cause

In previous versions, SSH timeout value was hard coded in GitSSHService.java file. This issue was captured in BZ-1278227.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.