View | Details | Raw Unified | Return to bug 61313
Collapse All | Expand All

(-)a/java/org/apache/catalina/realm/JNDIRealm.java (-1 / +29 lines)
Lines 417-422 public class JNDIRealm extends RealmBase { Link Here
417
    protected String connectionTimeout = "5000";
417
    protected String connectionTimeout = "5000";
418
418
419
    /**
419
    /**
420
     * The timeout, in milliseconds, to use when trying to read from a connection
421
     * to the directory. The default is 5000 (5 seconds).
422
     */
423
    protected String readTimeout = "5000";
424
425
    /**
420
     * The sizeLimit (also known as the countLimit) to use when the realm is
426
     * The sizeLimit (also known as the countLimit) to use when the realm is
421
     * configured with {@link #userSearch}. Zero for no limit.
427
     * configured with {@link #userSearch}. Zero for no limit.
422
     */
428
     */
Lines 1037-1042 public class JNDIRealm extends RealmBase { Link Here
1037
1043
1038
    }
1044
    }
1039
1045
1046
    /**
1047
     * @return the read timeout.
1048
     */
1049
    public String getReadTimeout() {
1050
1051
        return readTimeout;
1052
1053
    }
1054
1055
1056
    /**
1057
     * Set the read timeout.
1058
     *
1059
     * @param timeout The new read timeout
1060
     */
1061
    public void setReadTimeout(String timeout) {
1062
1063
        this.readTimeout = timeout;
1064
1065
    }
1066
1040
1067
1041
    public long getSizeLimit() {
1068
    public long getSizeLimit() {
1042
        return sizeLimit;
1069
        return sizeLimit;
Lines 2511-2516 public class JNDIRealm extends RealmBase { Link Here
2511
            env.put(JNDIRealm.DEREF_ALIASES, derefAliases);
2538
            env.put(JNDIRealm.DEREF_ALIASES, derefAliases);
2512
        if (connectionTimeout != null)
2539
        if (connectionTimeout != null)
2513
            env.put("com.sun.jndi.ldap.connect.timeout", connectionTimeout);
2540
            env.put("com.sun.jndi.ldap.connect.timeout", connectionTimeout);
2541
        if (readTimeout != null)
2542
            env.put("com.sun.jndi.ldap.read.timeout", readTimeout);
2514
2543
2515
        return env;
2544
        return env;
2516
2545
2517
- 

Return to bug 61313