RE: timeout on ldap_simple_bind_s()
"Xu, Qiang (FXSGSC)" <[email protected]> Tue, 15 Sep 2009 09:34:27 +0800
| Newsgroups | gmane.comp.mozilla.devel.directory |
|---|---|
| Message-ID | <D8C9BC7FFCF8154FB7141EB8DB609C172F0C1A7C8F@SGPAPHQ-EXSCC01.dc01.fujixerox.net> |
> -----Original Message----- > From: [email protected] [mailto:[email protected]] > Sent: Monday, September 14, 2009 10:14 PM > To: Xu, Qiang (FXSGSC) > Cc: [email protected] > Subject: Re: timeout on ldap_simple_bind_s() > > i think thats kinda common misconception about async calls in libldap. > they are not I/O async they are simply LDAP level async. ie > sync calls send requests and wait for responses before they > return and that can take arbitrary amount of time due to what > happens with requests on the server side. async libldap calls > allow you so send requests then poll for responses at your > own pace so if the server takes too much time to process > requests you have an option of doing something else or even > abandoning such requests if they take way too long. async in > this case however does not mean raw I/O level async. we do > however have some options, as the one suggested for NSPR/NSS > usage, to enforce timeouts on raw I/O level itself. Then, in what case, do you think the timeout parameter in ldap_result() will take effect, in conjunction with the async ldap_simple_bind()? Thanks, Xu Qiang