[
https://issues.apache.org/jira/browse/DIRAPI-230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Lecharny resolved DIRAPI-230.
--------------------------------------
Resolution: Fixed
Fixed with http://svn.apache.org/r1670208, tested with
http://svn.apache.org/r1670220
> Connection to invalid host blocks for 30 seconds
> ------------------------------------------------
>
> Key: DIRAPI-230
> URL: https://issues.apache.org/jira/browse/DIRAPI-230
> Project: Directory Client API
> Issue Type: Bug
> Affects Versions: 1.0.0-M28, 1.0.0-M29
> Reporter: Stefan Seelmann
> Fix For: 1.0.0-M30
>
>
> Connection to an invalid host like this
> {code:java}
> LdapNetworkConnection conn = new LdapNetworkConnection(
> "qwertyuiopasdfghjklzxcvbnm", 12389 );
> conn.connect();
> {code}
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)