directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seelmann (JIRA)" <>
Subject [jira] [Commented] (DIRSTUDIO-967) Timeout occurs during LDAP search
Date Fri, 25 Apr 2014 22:47:52 GMT


Stefan Seelmann commented on DIRSTUDIO-967:

A easy fix is to call LdapNetworkConnection.setTimeOut( 0L ) in Studio when opening the connection.

In LdapNetworkConnection the "timeout" propertiy is initialized with 30 seconds. Then when
a search request with no time limit (0) is started the "getTimeout(long clientTimeout)" method
return the default value. I think the "getTimeout(long clientTimeout)" is not fully correct,
see following matrix:

||connection timeout||client timeout (search time limit)||resulting timeout||expected timeout||
|-∞..-1|1..∞|client timeout|(/)|
|0|1..∞|client timeout|(/)|
|1..∞|-∞..-1|connection timeout (30)|(x) should be Long.MAX_VALUE|
|1..∞|0|connection timeout (30)|(x) should be Long.MAX_VALUE|
|1..∞|1..∞|min(connection timeout, client timeout)|(/)|

Any comments? Otherwise I'll try to change the method and add some tests.

> Timeout occurs during LDAP search
> ---------------------------------
>                 Key: DIRSTUDIO-967
>                 URL:
>             Project: Directory Studio
>          Issue Type: Bug
>          Components: studio-connection
>    Affects Versions: 2.0.0-M8 (2.0.0.v20130628)
>         Environment: Windows 7 64 Bit
>            Reporter: Martin Greck-Riederer
> The following error occurs if a search or an exports takes a long time. 
> It is getting me every day unhappy.
> Can please investigate this and fix it?
>  - TimeOut occurred
> javax.naming.NamingException: TimeOut occurred
> 	at
> 	at
> 	at
> 	at
> 	at
> TimeOut occurred

This message was sent by Atlassian JIRA

View raw message