"Matt Ross" <[EMAIL PROTECTED]> writes:
> "Dan Mosedale" <[EMAIL PROTECTED]> wrote in message
> aaa4p6$[EMAIL PROTECTED]">news:aaa4p6$[EMAIL PROTECTED]...
> > hedi <[EMAIL PROTECTED]> writes:
> > > Hi everybody,
> > >
> > > I am using C SDK 5.08 to access the Iplanet Directory server 4.1 and I'd
> > > like to have a mechanism of call back (or any other event) in case of
> > > deconnection (or anything similar) to be sure that my connection is
> > > still valid before any read or write request.
> > > Do the LDAP_IOF_CLOSE_CALLBACK could be used in this case ?
> > > Or a periodic check (with a fake read) is ok.
> > >
> > > Any suggestion ?
> >
> > This isn't really the model that the LDAP C SDK supports.  In general,
> > the way the C SDK works is that you just make calls into it as
> > appropriate, and if the connection goes down, the next call you make
> > will fail and set the LDAP errno to LDAP_SERVER_DOWN.
> >
> > Dan
> 
> That's what I thought too, but if I leave an active connection overnight
> (running from a GUI) and try the next day, it usually hangs on the first
> call to the server (usually a ldap_search_ext). I have to kill the process.
> My code is checking for an LDAP_CONNECT_ERROR and LDAP_SERVER_DOWN but as it
> hangs before the search returns it is a pointless exercise.

That sure sounds like a bug.  Can you file a bug in bugzilla.mozilla.org?

Dan

Reply via email to