[ 
https://issues.apache.org/jira/browse/QPID-854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Ritchie resolved QPID-854.
---------------------------------

    Resolution: Fixed

This was a faily large change that ended up putting a new message type on the 
dispatcher queue so we know when all msgs have been processed for a give 
consumer(browser). When that is reached the consumer can self close.

> Client does not correctly close QueueBrowsers.
> ----------------------------------------------
>
>                 Key: QPID-854
>                 URL: https://issues.apache.org/jira/browse/QPID-854
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: M2.1
>            Reporter: Martin Ritchie
>            Assignee: Martin Ritchie
>             Fix For: M2.1
>
>
> Summary:
> QueueBrowsers are sent an unsolicited CancelOK from the Java broker 
> automatically when there are no more messages. Currently we don't handle this 
> correctly. What needs to occur is that the Browser needs to wait for all 
> messages in the _synchronousQueue AND any potentially pending message in the 
> dispatcher queue OR that the dispatcher is currently processing to be 
> delivered.
> One approach for this is to add a special CloseConsumer message to the 
> dispatcher queue so it can cleanly close the browser when all messages have 
> been processed.

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

Reply via email to