Skip Menu |

This queue is for tickets about the perl-ldap CPAN distribution.

Report information
The Basics
Id: 42061
Status: resolved
Priority: 0/
Queue: perl-ldap

People
Owner: Nobody in particular
Requestors: Clyde.Ingram [...] EDMS.EDS.COM
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Timeout on new method is ignored by bind method UNCLASSIFIED
Date: Wed, 31 Dec 2008 13:17:11 -0000
To: <bug-perl-ldap [...] rt.cpan.org>
From: "Ingram, Clyde" <Clyde.Ingram [...] EDMS.EDS.COM>
The manpage for Net::LDAP version 0.34 says I can call the Net::LDAP new method with: timeout => N However, a subsequent call to the bind method hangs. The underlying fault may be that IO::Socket::INET now has code to discard the Timeout argument. Please see bug report "IO::Socket::INET Timeout no longer works" at: http://rt.cpan.org/Public/Bug/Display.html?id=38731 Tested with IO 1.23_01, and IO::Socket 1.31. Is there any alternative mechanism to timeout a bind request? Regards and Happy New Year, Clyde Ingram
Subject: Re: [rt.cpan.org #42061] Timeout on new method is ignored by bind method UNCLASSIFIED
Date: Wed, 31 Dec 2008 09:26:07 -0600
To: bug-perl-ldap [...] rt.cpan.org
From: Graham Barr <gbarr [...] pobox.com>
On Dec 31, 2008, at 7:17 AM, Ingram, Clyde via RT wrote: Show quoted text
> The manpage for Net::LDAP version 0.34 says I can call the Net::LDAP > new > method with: > timeout => N > > However, a subsequent call to the bind method hangs. The underlying > fault may be that IO::Socket::INET now has code to discard the Timeout > argument. Please see bug report "IO::Socket::INET Timeout no longer > works" at: > http://rt.cpan.org/Public/Bug/Display.html?id=38731 > > Tested with IO 1.23_01, and IO::Socket 1.31. > > Is there any alternative mechanism to timeout a bind request?
The timeout in IO::Socket is only used for connect. If you are calling bind then you already have your connection. Net::LDAP in sync mode (the default) will always wait for responses. If you want to timeout waiting for a response, then you need to use async mode and use select() on the socket Graham.