[Date Prev][Date Next] [Chronological] [Thread] [Top]

Race condition in ldap_search (ITS#980)



Full_Name: Mike Schiraldi
Version: 2.0.7
OS: RHL 7.0
URL: 
Submission from: (NULL) (216.168.254.240)


We've got two servers, which i'll call R (nsiregistrar-ldap.research.netsol.com)
and CS (ldap.thecobblershoppe.com). Client (C) connects to R and gets reference
to CS. It hangs, sometimes.

Here's the conversation when it doesn't hang. I hope you all use monospaced
fonts in your mailers:

   C             R             CS

       Bind
1. -------------->

      Bind Res.
2. <--------------

       Search
3. -------------->

      Reference
4. <--------------

             Bind
5. --------------------------->

          Bind Result
6. <---------------------------

     Search Res.
7. <--------------

       Unbind
8. -------------->



Now, if step 7 happens before step 6, step 8 never happens because the client is
hung.