Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-1875

Connection management responsiblities of FcrepoClient are unclear

    Details

    • Sprint:
      Sprint 2015 - 13

      Description

      It is unclear whom is responsible for managing HTTP connections that are created by the FcrepoClient on behalf of the user. Presumably the FcrepoClient is, but in my environment I'm running across the following issues:

      1. Connections are only released if the user of FcrepoClient reads the response body. If the user of the FcRepo client does not read the response body, the FcrepoClient eventually blocks waiting for a free connection.
      2. If an FcrepoOperationFailedException is thrown, the user of FcrepoClient has no access to the response body, and cannot free the connection. If enough exceptions are thrown, the FcrepoClient will eventually block waiting for free connections

      A PR demonstrating the issue follows.

      See: https://github.com/fcrepo4-exts/fcrepo-java-client/issues/5

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                esm Elliot Metsger
                Reporter:
                esm Elliot Metsger
                Reviewer:
                A. Soroka
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: