Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8277795

LDAP connection timeout not honoured under contention

XMLWordPrintable

      In a situation where:

      a) the ldap context url has a primary and a fallback server
      b) the primary server is unreachable
      c) a connection timeout is set
      d) multiple threads are attempting to make connections to the ldap server
      e) connection pooling is in use

      each of the threads will stack up on the connection pool waiting for every earlier thread to attempt to connect to the dead ldap server before even starting the counter for the connection timeout. E.g. the 10th thread would be stuck for 90 seconds prior to attempting to connect and would then wait the entire 10 seconds of the timeout value before giving up.

            robm Robert Mckenna
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: