[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#5143) com.novell.ldap.Connection(timeout) doesn't use LDAPSocketFactory that is set with setSocketFactory()



Full_Name: Timothy Nowacyzk
Version: jldap 4.3
OS: OS X
URL: 
Submission from: (NULL) (137.54.129.39)


When creating a new LDAPConnection with the timeout constructor, the Connection
is always created with a null SocketFactory even if a new default SocketFactory
was set with the setSocketFactory method

The patch is included.

--- openldap-jldap.orig/com/novell/ldap/Connection.java 2006-09-07
02:18:29.000000000 -0400
+++ openldap-jldap/com/novell/ldap/Connection.java      2007-09-18
16:15:56.000000000 -0400
@@ -196,6 +196,8 @@
     {
         myTimeOut = timeout;
 
+        mySocketFactory = socketFactory;
+
         if( Debug.LDAP_DEBUG) {
             synchronized(nameLock) {
                 name = "Connection(" + ++connNum + "): ";