Commands waiting on a future are not notified of a connection closed event
--------------------------------------------------------------------------
Key: QPID-881
URL: https://issues.apache.org/jira/browse/QPID-881
Project: Qpid
Issue Type: Bug
Components: Java Client
Affects Versions: M3
Reporter: Arnaud Simon
Fix For: M3
When a command is waiting for its result on a future it is notified of a
connection closed event through a RuntimeException. This is an issue especially
when the connection is closed by the broker because the command was erroneous.
The connectionClosed event with the corresponding error code is currently
dispatched to the connection exception listener.
one solution would be for the connection delegate of
org.apache.qpidity.nclient.Client to notify its
org.apache.qpidity.nclient.Session that the connection has been closed by the
broker. The sessions would then close all its pending commands with the
corresponding error code/exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.