hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [jira] Closed: (HTTPCLIENT-638) MultiThreadedHttpConnectionManager:connectionPool.numConnections synchronised using two different objects
Date Wed, 21 Feb 2007 00:29:37 GMT
Duh! Sorry, did not spot that.

BTW, Findbugs complains that it is _unsynchronized_ at lines 474 and
575, which is clearly wrong.

S.
On 21/02/07, Michael Becke (JIRA) <jira@apache.org> wrote:
>
>     [ https://issues.apache.org/jira/browse/HTTPCLIENT-638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
>
> Michael Becke closed HTTPCLIENT-638.
> ------------------------------------
>
>    Resolution: Invalid
>
> Hi Sebb,
>
> In these cases 'this' and 'connectionPool' refer to the same object.  It just depends
if the code is inside the connectionPool (uses this) or inside MTHCM (uses connectionPool).
>
> Mike
>
> > MultiThreadedHttpConnectionManager:connectionPool.numConnections synchronised using
two different objects
> > ---------------------------------------------------------------------------------------------------------
> >
> >                 Key: HTTPCLIENT-638
> >                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-638
> >             Project: HttpComponents HttpClient
> >          Issue Type: Bug
> >          Components: HttpClient
> >    Affects Versions: 3.1 RC1
> >            Reporter: Sebb
> >            Priority: Minor
> >
> > connectionPool.numConnections in MultiThreadedHttpConnectionManager is synchronized
using two different objects: "this" and connectionPool.
> > Is this intended?
> > Can it cause problems?
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
>
>

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


Mime
View raw message