synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Supun Kamburugamuva (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SYNAPSE-595) Possible race condition in ConnectionPool implementation of nhhtp transport
Date Mon, 09 Nov 2009 06:36:32 GMT

     [ 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


Mime
View raw message