[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-ldap-dev
Subject:    =?iso-8859-1?Q?R=E9f=2E_=3A_Re=3A_Problem_with_instruction_Net=3A=3ALDAP?=
From:       "Nicolas CHRISTOPHE" <nchristophe.ATIX.COHERIS () coheris ! com>
Date:       2001-12-18 13:24:51
[Download RAW message or body]

It works well now with IO version 1.20
Thanks for your help,
Nicolas





Graham Barr <gbarr@pobox.com> le 18/12/2001 12:51:53

Pour :    Nicolas CHRISTOPHE <nchristophe.ATIX.COHERIS@coheris.com>
cc :  perl-ldap-dev@lists.sourceforge.net

Objet :   Re: Problem with instruction Net::LDAP->new


On Tue, Dec 18, 2001 at 12:02:48PM +0100, Nicolas CHRISTOPHE wrote:
>
> Hi all,
>
> With $host being an unreachable IP address, the following instruction
does
> not take into account the "timeout" option. I.e., I would like to pass to
> the next line after 1 second delay, instead of it the program is waiting
> for an answer very long time
>
> $ldap = Net::LDAP->new($host, timeout => 1);
>
> Configuration : Linux RedHat, perl 5.005_03 for i386 linux

What version of IO do you have installed ? The latest on CPAN is
1.20, if you don't have that I suggest you install it.

Graham.




****************************************************************
This email and any attachments are confidential. They may contain
privileged information and are intended for the named addressee(s) only.
They must not be distributed without our consent. If you are not the
intended recipient, please notify us immediately and do not disclose,
distribute, or retain this email or any part of it. Unless expressly
stated, opinions in this email are those of the individual sender, and not
of Coheris. We believe but do not warrant that this e-mail and any
attachments are virus free. You must therefore take full responsibility for
virus checking. Coheris and its subsidiaries reserve the right to monitor
all email communications through their networks.
****************************************************************
Ce message et toutes les pieces jointes sont confidentiels et etablis a
l'intention exclusive de ses destinataires. Toute utilisation ou diffusion
non autorisee est interdite. Tout message electronique est susceptible
d'alteration. Coheris et ses filiales declinent toute responsabilite au
titre de ce message s'il a ete altere, deforme ou falsifie. Coheris
s'efforce d'éviter la dissemination de virus par l'intermediaire de ce
message, sans toutefois pouvoir le garantir. Coheris se reserve le droit de
controler et de visualiser les messages circulant sur son reseau, dans le
respect de la législation applicable.
****************************************************************


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic