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

Pending requests must be aborted when pooled Connection is closed

    Details

    • Type: Bug
    • Status: Dev backlog
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.5.0
    • Fix Version/s: None
    • Component/s: core apis
    • Labels:
      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

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

              Dates

              • Created:
                Updated: