mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
17.33.2013 b31a5ca2393d583b567ab02d69b5350b1f665a10
Back port fix for OPENDJ-1258: Default heartbeat timeout of 500ms is too aggressive

* change to 3 seconds.
1 files modified
5 ■■■■■ changed files
opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Connections.java 5 ●●●●● patch | view | raw | blame | history
opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Connections.java
@@ -246,7 +246,7 @@
     * using the provided connection factory and periodically ping any created
     * connections in order to detect that they are still alive every 10 seconds
     * using the default scheduler. Connections will be marked as having failed
     * if a heart-beat takes longer than 500ms.
     * if a heart-beat takes longer than 3 seconds.
     *
     * @param factory
     *            The connection factory to use for creating connections.
@@ -255,8 +255,7 @@
     *             If {@code factory} was {@code null}.
     */
    public static ConnectionFactory newHeartBeatConnectionFactory(final ConnectionFactory factory) {
        return new HeartBeatConnectionFactory(factory, 10000, 500, TimeUnit.MILLISECONDS, null,
                null);
        return new HeartBeatConnectionFactory(factory, 10, 3, TimeUnit.SECONDS, null, null);
    }
    /**