You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Supun Kamburugamuva (JIRA)" <ji...@apache.org> on 2009/11/09 07:36:32 UTC
[jira] Updated: (SYNAPSE-595) Possible race condition in
ConnectionPool implementation of nhhtp transport
[ 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org