reta commented on a change in pull request #398: [Draft] SSE implementation
using AsyncContext
URL: https://github.com/apache/cxf/pull/398#discussion_r180503481
##########
File path:
systests/rs-sse/rs-sse-base/src/main/java/org/apache/cxf/systest/jaxrs/sse/BookStore.java
##########
@@ -124,6 +124,7 @@ public void stop() {
broadcaster.broadcast(createStatsEvent(builder.name("book"),
1000));
broadcaster.broadcast(createStatsEvent(builder.name("book"),
2000));
+ Thread.sleep(2000);
Review comment:
The fix would be (I think) to wrap `broadcaster.broadcast` calls into
`CompletableFuture.allOf` and add `whenCompleted` callback to close the
broadcaster.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services