[
https://issues.apache.org/jira/browse/SYNAPSE-595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Supun Kamburugamuva updated SYNAPSE-595:
----------------------------------------
Attachment: SYNAPSE-595.patch
Attaching a patch that removes the double check locking.
Here is a document that describes why double checked locking doesn't work in
java.
http://www.ibm.com/developerworks/java/library/j-dcl.html
> Possible race condition in ConnectionPool implementation of nhhtp transport
> ---------------------------------------------------------------------------
>
> Key: SYNAPSE-595
> URL: https://issues.apache.org/jira/browse/SYNAPSE-595
> Project: Synapse
> Issue Type: Bug
> Components: Transports
> Reporter: Supun Kamburugamuva
> Attachments: SYNAPSE-595.patch
>
>
> The nhttp transport connection pool uses double checked locking when it
> releases a connection. But double checked locking is not a recommended
> practice in Java and its use is avoided. Simply because it is not working.
--
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: [email protected]
For additional commands, e-mail: [email protected]