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

Matthew Swift
17.31.2013 eb933a0105d63d1640a32a70d86dfa4e72afc1fe
Fix OPENDJ-1258: Default heartbeat timeout of 500ms is too aggressive

* change to 3 seconds.
1 files modified
5 ■■■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/Connections.java 5 ●●●●● patch | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/Connections.java
@@ -245,7 +245,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.
@@ -254,8 +254,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);
    }
    /**