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

Search request time limit should override connection timeout

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M22
    • Fix Version/s: 1.0.0-M23
    • Labels:
      None

      Description

      The LdapNetworkConnection has a "timeout" property (default 30 seconds) which is used as max time we wait for a response. For most LDAP operations this makes sense as they don't allow to specify any time limit.

      For search operation a time limit can be specified. But the current code still uses a timeout smaller than the search time limit, which may lead to unexpected errors (see DIRSTUDIO-967). Especially the case when search time limit is 0 is not handled correctly, in that case timeout should be Long.MAX_VALUE.

        Activity

        Hide
        Stefan Seelmann added a comment -
        Show
        Stefan Seelmann added a comment - Fixed here: http://svn.apache.org/r1590296
        Hide
        Emmanuel Lecharny added a comment -

        Closing the resolved issues.

        Show
        Emmanuel Lecharny added a comment - Closing the resolved issues.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development