From users-return-4301-apmail-directory-users-archive=directory.apache.org@directory.apache.org Tue Nov 29 00:23:13 2011 Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6A2C926B for ; Tue, 29 Nov 2011 00:23:13 +0000 (UTC) Received: (qmail 66179 invoked by uid 500); 29 Nov 2011 00:23:13 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 66155 invoked by uid 500); 29 Nov 2011 00:23:13 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 66147 invoked by uid 99); 29 Nov 2011 00:23:13 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 00:23:13 +0000 Received: from localhost (HELO emmanuel-lecharnys-MacBook-Pro.local) (127.0.0.1) (smtp-auth username elecharny, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 00:23:13 +0000 Message-ID: <4ED425EF.3080003@apache.org> Date: Tue, 29 Nov 2011 01:23:11 +0100 From: =?UTF-8?B?RW1tYW51ZWwgTMOpY2hhcm55?= Reply-To: elecharny@apache.org Organization: The Apache Software Foundation User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: users@directory.apache.org Subject: Re: Connection timeouts References: <4ED3D13A.3050800@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 11/28/11 8:03 PM, Daniel Fisher wrote: > On Mon, Nov 28, 2011 at 1:21 PM, Emmanuel Lecharny wrote: >> On 11/28/11 6:40 PM, Daniel Fisher wrote: >>> The LdapNetworkConnection#setTimeOut(long) documentation indicates >>> this property controls operation response timeouts. Is there a >>> property to control connect timeouts as well? >> It should be the same. We don't connect before the first operation is sent >> to the server, AFAIR. I have to check the code. >> >> Do you have any issue with the connection ? >> > No, just wondering if the API supplies properties equivalent to JNDI: > http://docs.oracle.com/javase/tutorial/jndi/newstuff/readtimeout.html Yes, of course, but it's global for the connection. You just have to set it : connection.setTimeout( ); If your value is <= 0, then this will be infinite. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com