src/share/classes/com/sun/jndi/ldap/Connection.java

Print this page
rev 10092 : 8046768: com/sun/jndi/ldap/LdapTimeoutTest.java fails intermittently
Summary: Added diagnostic printStackTrace() for NamingException
Reviewed-by: duke

*** 109,118 **** --- 109,119 ---- */ public final class Connection implements Runnable { private static final boolean debug = false; private static final int dump = 0; // > 0 r, > 1 rw + public static final long DEFAULT_READ_TIMEOUT_MILLIS = 15 * 1000; // 15 second timeout; final private Thread worker; // Initialized in constructor private boolean v3 = true; // Set in setV3()
*** 458,468 **** // will be woken up before readTimeout only if reply is // available ldr.wait(readTimeout); } else { ! ldr.wait(15 * 1000); // 15 second timeout } waited = true; } else { break; } --- 459,469 ---- // will be woken up before readTimeout only if reply is // available ldr.wait(readTimeout); } else { ! ldr.wait(DEFAULT_READ_TIMEOUT_MILLIS); } waited = true; } else { break; }