[
https://issues.jboss.org/browse/RF-12219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12708259#comment-12708259
]
Lukáš Fryč commented on RF-12219:
---------------------------------
Hi Milo,
looked once again to your fix, it seems okay in case of single window per
single client.
However each client and each browser window needs to establish own connection
to the server.
Why? Each client (browser tab/window) is subscribed to particular set of
topics, and each PushSession own queue of messages to be delivered to those
topics.
If you would connect more requests to the same session, then you are getting
Message Queueing concept instead of Topic Subscription.
Basically first client comes, first serves.
----
In detail, each client request which [finds out there are messages in Session's
queue|https://github.com/richfaces/core/blob/4cef088fcee550d2d7f0fd4a1b71c6c8631fdb31/impl/src/main/java/org/richfaces/application/push/impl/RequestImpl.java#L100],
it initiates broadcasting and once broadcasting ends, it [clears sent
messages|https://github.com/richfaces/core/blob/4cef088fcee550d2d7f0fd4a1b71c6c8631fdb31/impl/src/main/java/org/richfaces/application/push/impl/RequestImpl.java#L166].
----
You should be able to simulate this problem by opening two tabs in one browser
- messages will be delivered just to one of them.
> Push: Test that messages do not become stale in a queue
> -------------------------------------------------------
>
> Key: RF-12219
> URL: https://issues.jboss.org/browse/RF-12219
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-push/poll
> Affects Versions: 4.2.1.Final
> Reporter: Lukáš Fryč
> Assignee: Juraj Húska
> Priority: Critical
> Fix For: 4.3.0.Milestone2
>
>
> According to the [Forum reference],
> we can have problems with stale messages.
> I would suggest to write tests for following scenarios and check that queue
> is destroyed properly:
> * view expires
> * client leaves the page with {{a4j:push}} without proper clean up
> * ...
> Let's brainstorm other scenarios.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues