Directory Client API
  1. Directory Client API
  2. DIRAPI-135

The connectiosn may be invalid when we get it from the pool

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M16
    • Fix Version/s: 1.0.0-M17
    • Labels:
      None

      Description

      When a connection is get from the LdapConnectionPool, it may be invalid (for instance, if the connection timed out). In M16, we don't check that the connection can still 'talk' to the server.

      We need to validate the connection when we request some from the pool

        Activity

        Emmanuel Lecharny created issue -
        Hide
        Emmanuel Lecharny added a comment -

        This as been fixed in the 1.0.0-M17 release.

        When the pool uses the testOnBorrow flag set to true, like in :

        pool.setTestOnBorrow( true );

        then the connection is checked by fetching an entry from the remote server, before it's returned back to the user. If the connection is not valid, we create a new one.

        Show
        Emmanuel Lecharny added a comment - This as been fixed in the 1.0.0-M17 release. When the pool uses the testOnBorrow flag set to true, like in : pool.setTestOnBorrow( true ); then the connection is checked by fetching an entry from the remote server, before it's returned back to the user. If the connection is not valid, we create a new one.
        Emmanuel Lecharny made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Emmanuel Lecharny
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development