Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1136

BasicClientConnectionManager.releaseConnection accesses poolEntry using non-standard lock

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.2 Alpha1
    • HttpClient (classic)
    • None

    Description

      According to the annotation, poolEntry is @GuardedBy("this").

      However, in at least one place, it is accessed without holding a lock on this:

      BasicClientConnectionManager.releaseConnection synchronizes on managedConn, and then accesses poolEntry without synchronising on this.

      [Synch. only works if all parties use the same lock.]

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: