Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-230

Connection to invalid host blocks for 30 seconds

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M28, 1.0.0-M29
    • Fix Version/s: 1.0.0-M30
    • Labels:
      None

      Description

      Connection to an invalid host like this

              LdapNetworkConnection conn = new LdapNetworkConnection( "qwertyuiopasdfghjklzxcvbnm", 12389 );
              conn.connect();
      

      results in a nice exception (InvalidConnectionException / UnresolvedAddressException).

      However it tries to connect for 30 seconds, only after that the exception is thrown. This looks like the default timeout is considered. I think the exception should be thrown faster.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: