Home > Archive > LDAP > February 2008 > Connection dropping?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Connection dropping?
|
|
| Zumwalt, Robert 2008-02-28, 8:32 am |
| I have a module which makes several sequential calls to the LDAP server
and after the first 10-15 calls my connection seems to be getting
dropped.
Is there a method in net::ldap which allows me to check the state of the
connection to see if it is still good before attempting to reuse it?
Thank you
Robert Zumwalt
E-MAIL CONFIDENTIALITY NOTICE:
The contents of this e-mail message and
any attachments are intended solely for the
addressee(s) and may contain confidential
and/or legally privileged information. If you
are not the intended recipient of this message
or if this message has been addressed to you
in error, please immediately alert the sender
by reply e-mail and then delete this message
and any attachments. If you are not the
intended recipient, you are notified that
any use, dissemination, distribution, copying,
or storage of this message or any attachment
is strictly prohibited.
| |
| Chris Ridd 2008-02-28, 8:53 pm |
|
On 28 Feb 2008, at 14:13, Zumwalt, Robert wrote:
> I have a module which makes several sequential calls to the LDAP
> server
> and after the first 10-15 calls my connection seems to be getting
> dropped.
>
>
>
> Is there a method in net::ldap which allows me to check the state of
> the
> connection to see if it is still good before attempting to reuse it?
Not one directly that I can think of, but if you grab the socket using
$ldap->socket() there may be some IO::Socket methods you can use on it.
Cheers,
Chris
| |
| Zumwalt, Robert 2008-02-28, 8:53 pm |
| Thank you for the reply.. I found the problem... and I created it.. I
was disconnecting from the LDAP connection any time I received an error
condition back in my error checking and reporting method. However this
is not the behavior I want all as I do expect some "not found" results
which are returned as errors so I was creating the condition myself.
Fixed it... and I'm glad that I did not have to dig into the IO::Socket
because that's where I was heading next.
Robert Zumwalt
-----Original Message-----
From: Chris Ridd [mailto:chrisridd@mac.com]=20
Sent: Thursday, February 28, 2008 10:26 AM
To: Zumwalt, Robert
Cc: perl-ldap@perl.org
Subject: Re: Connection dropping?
On 28 Feb 2008, at 14:13, Zumwalt, Robert wrote:
> I have a module which makes several sequential calls to the LDAP =20
> server
> and after the first 10-15 calls my connection seems to be getting
> dropped.
>
>
>
> Is there a method in net::ldap which allows me to check the state of =20
> the
> connection to see if it is still good before attempting to reuse it?
Not one directly that I can think of, but if you grab the socket using =20
$ldap->socket() there may be some IO::Socket methods you can use on it.
Cheers,
Chris
E-MAIL CONFIDENTIALITY NOTICE:=20
=20
=20
=20
The contents of this e-mail message and=20
any attachments are intended solely for the=20
addressee(s) and may contain confidential=20
and/or legally privileged information. If you=20
are not the intended recipient of this message=20
or if this message has been addressed to you=20
in error, please immediately alert the sender
by reply e-mail and then delete this message=20
and any attachments. If you are not the=20
intended recipient, you are notified that=20
any use, dissemination, distribution, copying,=20
or storage of this message or any attachment=20
is strictly prohibited.
|
|
|
|
|