Extra info:  Seems to be quicker when the unreachable IP address is on the
same subnet.


On Tue, Dec 31, 2013 at 4:19 PM, Stuart Broad <[email protected]> wrote:

> Hi,
>
> I am using a subclass of JndiLdapRealm.  All works well when the LDAP
> server is reachable (I am currently using a non-ssl connection) but when
> the LDAP server is not available (IP address not available) the call to
> getLdapContext takes a long time (too long for the user to wait) to return.
>
> I thought perhaps I could set one of the more obscure LDAP JNDI
> properties.  The property com.sun.jndi.ldap.read.timeout did not work
> (most likely as this was to to with reading from a socket).
>
> I think what I need is a way to set the socket creation timeout.  Is there
> a convenient property that I can use for this?
>
> If not then I may have to create a custom socket factory.  If you have
> done this then I would appreciate any pointers on what objects/classes will
> need to be modified.
>
> Happy New Year!
>

Reply via email to