United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8000487 Java JNDI connection library on ldap conn is not honoring configured timeout
JDK-8000487 : Java JNDI connection library on ldap conn is not honoring configured timeout

Details
Type:
Bug
Submit Date:
2012-10-05
Status:
Resolved
Updated Date:
2013-04-05
Project Name:
JDK
Resolved Date:
2012-10-15
Component:
core-libs
OS:
Sub-Component:
javax.naming
CPU:
Priority:
P4
Resolution:
Fixed
Affected Versions:
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:

Sub Tasks

Description
SHORT SUMMARY: Ldap connect timeout not working correctly.
INDICATORS: Ldap simple auth connection using the read timeout value instead 
of the connect timeout.
COUNTER INDICATORS:
TRIGGERS: Use simple auth to connect to ldap server
KNOWN WORKAROUND:
PRESENT SINCE: fcs
HOW TO VERIFY:
NOTES FOR SE:
REGRESSION: n


                                    

Comments
When attempting to connect while using simple auth, we actually perform a read. This means that the connection is subject to the read timeout. The solution is to alter the readtimeout to the same value as the connect timeout for the duration of the auth.
                                     
2012-10-05
Fix sent for review
                                     
2012-10-08
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/c0736b62160e
User:  robm
Date:  2012-10-15 21:33:01 +0000

                                     
2012-10-15
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/c0736b62160e
User:  lana
Date:  2012-10-31 02:51:07 +0000

                                     
2012-10-31



Hardware and Software, Engineered to Work Together