Re: ldap_simple_bind blocks in Open Mode when the DS is in hang state
Anton Bobrov <[email protected]> Fri, 10 Jul 2009 17:03:15 +0200
| Newsgroups | gmane.comp.mozilla.devel.directory |
|---|---|
| Organization | Sun Microsystems, Inc. |
| Message-ID | <[email protected]> |
it does look like NSS is not respecting timeout you set with PRLDAP_OPT_IO_MAX_TIMEOUT. it might be the case that it only would apply it on send operation but not on receive. since receive and poll there are invoked directly by NSS itself i would expect it to respect the timeout specified on original operation [we invoke] in its internally spawn operations as well however it doesnt seem to be the case here. i recommend asking on NSS list about that. denish patel wrote: > Hi Anton, > > Apologies for the delay as the machine I was working on went down > & I had gone for a long leave. > > Here is the backtrace for the program: > #0 0x00b3296a in poll () from /lib/i686/libc.so.6 > #1 0x005ae8b5 in pt_poll_now () from ../../../..............so > #2 0x005aeaf3 in pt_Continue () from ../../../..............so > #3 0x005afdf4 in pt_Recv () from ../../../..............so > #4 0x0052ab2e in ssl_DefRecv () from ../../../..............so > ---Type <return> to continue, or q <return> to quit--- > #5 0x0053a224 in ssl3_GatherData () from ../../../..............so > #6 0x0053a341 in ssl3_GatherCompleteHandshake () from > ../../../..............so > #7 0x00527fa9 in ssl_GatherRecord1stHandshake () from > ../../../..............so > #8 0x0052b9b8 in ssl_Do1stHandshake () from > ../../../..............so > #9 0x0052cb93 in ssl_SecureSend () from ../../../.............so > #10 0x0052e986 in ssl_Send () from ../../../.............so > #11 0x005a2033 in PR_Send () from ../../../...............so > #12 0x00511d8f in prldap_write () from ../../../...............so > #13 0x005bd993 in ber_flush () from ../../../....................so > #14 0x0051eccc in nsldapi_send_ber_message () from > ../../../..............so > #15 0x0051e88b in nsldapi_send_server_request () from > ../../../...........so > #16 0x0051e365 in nsldapi_send_initial_request () from > ../../../..........so > #17 0x00522d30 in simple_bind_nolock () from > ../../../..........so > #18 0x00522af0 in ldap_simple_bind () from ../../../.........so > #19 0x0050d51d in obldap_simple_bind () from > ../../../..................so > #20 0x08ee47ff in LDAPSimpleBind () > > You may notice that the thread is getting stuck in the poll() function. > The so from which it is being invoked acts as a wrapper for LDAP Mozilla > SDK. > > Thanks, > Denish > _______________________________________________ > dev-tech-ldap mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-ldap