Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-5723

Pending requests must be aborted when pooled Connection is closed

    XMLWordPrintable

    Details

    • Bug
    • Status: Dev backlog
    • Major
    • Resolution: Unresolved
    • 6.5.0
    • None
    • core apis
    • None

      Description

      The SDK's ConnectionPool should track the pending requests so that they can be cancelled when the virtual pooled Connection is closed.

      A possible algorithm:

      • Add the RequestHandle when the request is sent into a ConcurrentHashSet
      • Remove the RequestHandle when the result for the request is received.
      • On disconnection, invoke something like pendingRequests.forEach(RequestHandle::abandon)

        Attachments

          Activity

            People

            Unassigned Unassigned
            ylecaillez Yannick Lecaillez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: