From: Nicolas C. <nch...@co...> - 2001-12-18 13:23:44
|
It works well now with IO version 1.20 Thanks for your help, Nicolas Graham Barr <gb...@po...> le 18/12/2001 12:51:53 Pour : Nicolas CHRISTOPHE <nch...@co...> cc : per...@li... 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 pas= s to > the next line after 1 second delay, instead of it the program is wait= ing > for an answer very long time > > $ldap =3D Net::LDAP->new($host, timeout =3D> 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 monit= or 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 diffus= ion 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'=E9viter la dissemination de virus par l'intermediaire de c= e message, sans toutefois pouvoir le garantir. Coheris se reserve le droi= t de controler et de visualiser les messages circulant sur son reseau, dans = le respect de la l=E9gislation applicable. ****************************************************************= |