You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rob Godfrey (JIRA)" <qp...@incubator.apache.org> on 2007/08/10 15:53:42 UTC
[jira] Created: (QPID-547) Race condition on Session.close
Race condition on Session.close
-------------------------------
Key: QPID-547
URL: https://issues.apache.org/jira/browse/QPID-547
Project: Qpid
Issue Type: Bug
Components: Java Client
Affects Versions: M1
Reporter: Rob Godfrey
Fix For: M2
There is a race condition when closing a connection while the Dispatcher threa is running.
The session get closed while a new message is being dispatched. This causes the dispatch of the message to the MessageListener to fail (for instance when it checks the acknowledge mode to see if it should pre- or post- acknowledge).
Fix by preventing using synchronized blocks to prevent close() being called in other threads while in the dispatch process
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (QPID-547) Race condition on Session.close
Posted by "Rob Godfrey (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Godfrey resolved QPID-547.
------------------------------
Resolution: Fixed
> Race condition on Session.close
> -------------------------------
>
> Key: QPID-547
> URL: https://issues.apache.org/jira/browse/QPID-547
> Project: Qpid
> Issue Type: Bug
> Components: Java Client
> Affects Versions: M1
> Reporter: Rob Godfrey
> Fix For: M2
>
>
> There is a race condition when closing a connection while the Dispatcher threa is running.
> The session get closed while a new message is being dispatched. This causes the dispatch of the message to the MessageListener to fail (for instance when it checks the acknowledge mode to see if it should pre- or post- acknowledge).
> Fix by preventing using synchronized blocks to prevent close() being called in other threads while in the dispatch process
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.