On 2009-07-13 05:00 PDT, denish patel wrote: > Hi All, > > I have a simple LDAP Client that connects to a Directory Server (DS). > However, when the DS hangs the program does not respond. > It is able to connect properly when the DS is not in a hang state. > Also when the DS has been stopped entirely, the LDAP Client is able > to return quickly from the ldap_simple_bind call. > > The LDAP Client & the DSA are on the same Linux machine. > > I had queried regarding the issue in the LDAP List, but after seeing the > backtrace, Anton Borov suggested I put the query to the NSS List.
Prior to calling LDAPSimpleBind, have you set a timeout on the socket by calling prldap_set_session_option? What are the values of the 5 arguments passed to PR_Send in the following stack? > Here is the backtrace for the program: > #0 0x00b3296a in poll () from /lib/i686/libc.so.6 > #1 0x005ae8b5 in pt_poll_now () > #2 0x005aeaf3 in pt_Continue () > #3 0x005afdf4 in pt_Recv () > #4 0x0052ab2e in ssl_DefRecv () > #5 0x0053a224 in ssl3_GatherData () > #6 0x0053a341 in ssl3_GatherCompleteHandshake () > #7 0x00527fa9 in ssl_GatherRecord1stHandshake () > #8 0x0052b9b8 in ssl_Do1stHandshake () > #9 0x0052cb93 in ssl_SecureSend () > #10 0x0052e986 in ssl_Send () > #11 0x005a2033 in PR_Send () > #12 0x00511d8f in prldap_write () > #13 0x005bd993 in ber_flush () > #14 0x0051eccc in nsldapi_send_ber_message () > #15 0x0051e88b in nsldapi_send_server_request () > #16 0x0051e365 in nsldapi_send_initial_request () > #17 0x00522d30 in simple_bind_nolock () > #18 0x00522af0 in ldap_simple_bind () > #19 0x0050d51d in obldap_simple_bind () > #20 0x08ee47ff in LDAPSimpleBind () -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto