Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-7338

naming enumeration not closed in some cases

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4.1
    • Fix Version/s: 5.5
    • Component/s: Directory

      Description

      Some times, ldap threads are not returning in the pool. They are attempting to read data from their sockets.
      That problem is well described at http://blogs.warwick.ac.uk/kieranshaw/entry/ldap_connection_pooling/.
      We need to enforce naming enumeration uses by adding a finally block for closing.

      NamingEnumeration x = ...;
      try {
       ...
      } finally {
        x.close();
      }
      

      Here is the list of classes being impacted : LDAPSession,LDAPReference,LDAPTreeReference,LDAPFilterMatcher.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: