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

Connection to invalid host blocks for 30 seconds

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0-M28, 1.0.0-M29
    • 1.0.0-M30
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: