[Date Prev][Date Next]
RE: ldap libraries and network timeouts
What would need to be patched to get this working? Can
I just do a setsockopt somewhere? For some reason my
LDAP server didn't respond to a query today (another
issue), and as a result my ldap client hung forever.
Since I run my ldap client from within another
program, this is a problem for me which I'd like to
--- Howard Chu <email@example.com> wrote:
> > -----Original Message-----
> > From: owner-openldap-software@OpenLDAP.org
> > [mailto:owner-openldap-software@OpenLDAP.org]On
> Behalf Of Dave Snoopy
> > My ldap client tool failed to timeout when trying
> > connect to a hung LDAP server, even though I've
> set a
> > network timeout of 5 seconds using all of these
> > options:
> > LDAP_OPT_TIMEOUT
> > LDAP_OPT_TIMELIMIT
> > LDAP_OPT_NETWORK_TIMEOUT
> > Searching through the LDAP code revealed that
> > properties are not used after they are set (at
> > not on the client side). Is this a correct
> Not entirely. The OPT_NETWORK_TIMEOUT is used when
> establishing a connection.
> I've never seen what the OPT_TIMEOUT was intended
> for, it does appear to be
> totally unused.
> -- Howard Chu
> Chief Architect, Symas Corp. Director,
> Highland Sun
> Symas: Premier OpenSource Development and Support
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).