Read timeout parameter for LDAP connections: ldap.readTimeout
By default LDAP connection would wait indefinitely on an LDAP
request to return. In case LDAP server is very slow this may cause
all SSH command creation threads to get blocked.
This change introduces the ldap.readTimeout parameter. The value
is in the usual time-unit format i.e. "1 s", "100 ms", etc...
A timed-out LDAP request seems not to cause failure of the SSH command
for which the LDAP request was fired. Instead, the exception is
handled in the PopulatingCache.get method where it is logged and the
creator.missing(key) is returned. This seems to be expected behaviour.
Change-Id: I278b324018934a77a2886878b89c4f0c0f4ae65e
Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com>
2 files changed