Race condition in closing session due to exception
--------------------------------------------------

                 Key: QPID-1785
                 URL: https://issues.apache.org/jira/browse/QPID-1785
             Project: Qpid
          Issue Type: Bug
          Components: C++ Client
    Affects Versions: M4
            Reporter: Gordon Sim
            Assignee: Gordon Sim


If a Session object goes out of scope, the ConnectionImpl will throw a
FramingErrorException for any frames received on the correspodning channel. 

This is in itself incorrect as the broker may not have ever been sent a detach.
However it only causes a real problem when a session is closed due to an
exception. In this case the client receives an execution.exception command
followed by a session.detach control. If the session goes out of scope between
the processing of these two, the handling of the detach causes a
FramingErrorException which causes the client to close the connection thus
destroying all other active sessions.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to