hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1136) BasicClientConnectionManager.releaseConnection accesses poolEntry using non-standard lock
Date Tue, 11 Oct 2011 15:13:12 GMT
BasicClientConnectionManager.releaseConnection accesses poolEntry using non-standard lock
-----------------------------------------------------------------------------------------

                 Key: HTTPCLIENT-1136
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1136
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
            Reporter: Sebb


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.]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message