Branch: refs/heads/3.5
Home:
https://github.com/resteasy/Resteasy
Commit: 0283d057b346ee5fada86b082f88dced068c4667
https://github.com/resteasy/Resteasy/commit/0283d057b346ee5fada86b082f88d...
Author: Alessio Soldano <soldano.servizi(a)email.it>
Date: 2018-03-13 (Tue, 13 Mar 2018)
Changed paths:
M
resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/providers/sse/SseBroadcasterImpl.java
M
resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/providers/sse/SseEventOutputImpl.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/resteasy_jaxrs/i18n/Messages.java
A
testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/providers/sse/SseBroadcasterTest.java
Log Message:
-----------
[RESTEASY-1793] Backporting changes to 3.5 (#1447)
* Once the SseBroadcaster is closed, subsequent calls have no effect and are ignored.
Once the SseBroadcaster is closed, invoking any other method on the
broadcaster instance would result in an IllegalStateException being thrown
Signed-off-by: NicoNes <nicolas.nesmon(a)gmail.com>
* We have to notify close listeners if the SSE event output has been
closed (either by client closing the connection (IOException) or
by calling SseEventSink.close() (IllegalStateException)
on the server side.
Close listeners should be invoked once for a given eventSink.
* Add lock mechanism to prevent leaks due to event sink never closed.
Signed-off-by: NicoNes <nicolas.nesmon(a)gmail.com>
* Remove useless cast
Signed-off-by: NicoNes <nicolas.nesmon(a)gmail.com>
* Add unit test for SseBroadcasterImpl
Signed-off-by: NicoNes <nicolas.nesmon(a)gmail.com>
* Set ReentrantReadWriteLock fairness policy to true
* Remove second send(...) method
Signed-off-by: NicoNes <nicolas.nesmon(a)gmail.com>
* Use completableFuture.completeExceptionally(ex) so that the error processing can be
triggered
Signed-off-by: NicoNes <nicolas.nesmon(a)gmail.com>
* Review tests names
Signed-off-by: NicoNes <nicolas.nesmon(a)gmail.com>