https://bugs.openldap.org/show_bug.cgi?id=10141

          Issue ID: 10141
           Summary: 100% CPU consumption with ldap_int_tls_connect
           Product: OpenLDAP
           Version: 2.6.3
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Keywords: needs_review
          Severity: normal
          Priority: ---
         Component: libraries
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

While doing secure ldap connection, i'm seeing that connection is getting stuck
in read block in case it is unable to connect active directory sometime:
~ # strace -p 15049
strace: Process 15049 attached
read(3, 0x55ef720bda53, 5)              = -1 EAGAIN (Resource temporarily
unavailable)
read(3, 0x55ef720bda53, 5)              = -1 EAGAIN (Resource temporarily
unavailable)
..  ..
..  ..

After putting some logs, I can see that "ldap_int_tls_start" function of
"openldap-2.6.3/libraries/libldap/tls2.c" calls "ldap_int_tls_connect" in while
loop.
It seems to be blocking call, as it try to connect continuously until it get
connected(ti_session_connect returns 0) and thus consumes 100% CPU during that
time.

Is there any known issue ?

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to