[ https://issues.apache.org/activemq/browse/AMQ-995?page=all ]

Rob Lugt updated AMQ-995:
-------------------------

    Attachment: amq995-patch.txt

Attached patch does 3 things:

1) Adds explitic Close() method and allows Close/Dispose to be called multipel 
times
2) Differentiates between exceptions that occur during read/parse and those 
that occur in the message handler
3) Closes socket if IO exception occurs to prevent further use of the (now 
invalid) socket.

> An unhandled exception in the TcpTransports' reader thread should close the 
> connection (and inform the app)
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-995
>                 URL: https://issues.apache.org/activemq/browse/AMQ-995
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: NMS (C# client)
>    Affects Versions: 4.0.2
>         Environment: Windows
>            Reporter: Rob Lugt
>         Attachments: amq995-patch.txt
>
>
> If the reader thread throws an exception (e.g. IOException) then the socket 
> should be closed to prevent further messages being sent to the broker. If an 
> exception is thrown during the marshalling of a message then there's no way 
> for the stream to be set to the beginning of the next message, so all 
> communication with the broker should cease at that point.  Similarly, if the 
> broker is killed, an IOException will probably be detected in the read thread 
> first.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to