response = future.get( timeout, timeUnit );
}
catch ( Exception e )
{
LdapException ldapException = new LdapException( LdapNetworkConnection.NO_RESPONSE_ERROR, e );
// Send an abandon request
if ( !future.isCancelled() )
{
future.cancel( true );
}
// close the cursor
close( ldapException );
throw ldapException;
}
if ( response == null )
{
future.cancel( true );
throw new LdapException( LdapNetworkConnection.TIME_OUT_ERROR );
}
done = ( response instanceof SearchResultDone );
if ( done )