Branch: refs/heads/master
Home:
https://github.com/resteasy/Resteasy
Commit: bb68676d693165b9a318fd3c344b3114b22cb168
https://github.com/resteasy/Resteasy/commit/bb68676d693165b9a318fd3c344b3...
Author: NicoNes <nicolas.nesmon(a)gmail.com>
Date: 2018-03-05 (Mon, 05 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: SseBroadcasterImpl does not follow the javadoc requirements (#1395)
* Once the SseBroadcaster is closed, subsequent calls have no effect and are ignored.
invoking any other method on the broadcaster instance would result in an
IllegalStateException being thrown
* 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.
* Add lock mechanism to prevent leaks due to event sink never closed.
* Remove second send(...) method